AnimatedSlide constructor Null safety

const AnimatedSlide(
  1. {Key? key,
  2. Widget? child,
  3. required Offset offset,
  4. Curve curve = Curves.linear,
  5. required Duration duration,
  6. VoidCallback? onEnd}
)

Creates a widget that animates its offset translation implicitly.

The offset and duration arguments must not be null.

Implementation

const AnimatedSlide({
  super.key,
  this.child,
  required this.offset,
  super.curve,
  required super.duration,
  super.onEnd,
});