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({
  Key? key,
  this.child,
  required this.offset,
  Curve curve = Curves.linear,
  required Duration duration,
  VoidCallback? onEnd,
}) : super(key: key, curve: curve, duration: duration, onEnd: onEnd);