AnimatedPadding constructor
AnimatedPadding({
- Key? key,
- required EdgeInsetsGeometry padding,
- Widget? child,
- Curve curve = Curves.linear,
- required Duration duration,
- void onEnd()?,
Creates a widget that insets its child by a value that animates implicitly.
Implementation
AnimatedPadding(
{super.key,
required this.padding,
this.child,
this.curve = Curves.linear,
required this.duration,
this.onEnd})
: assert(padding.isNonNegative);