AnimatedTranslation constructor
AnimatedTranslation({})
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);