AnimatedTranslation constructor

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

Creates a widget that insets its child by a value that animates implicitly.

The offset, curve, and duration arguments must not be null.

Implementation

AnimatedTranslation({
  Key? key,
  required this.offset,
  this.child,
  Curve curve = Curves.linear,
  required Duration duration,
  VoidCallback? onEnd,
})  : super(key: key, curve: curve, duration: duration, onEnd: onEnd);