AnimatedSlide constructor

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.

Implementation

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