AnimatedPadding constructor Null safety
- {Key? key,
- required EdgeInsetsGeometry padding,
- Widget? child,
- Curve curve = Curves.linear,
- required Duration duration,
- VoidCallback? onEnd}
Creates a widget that insets its child by a value that animates implicitly.
The padding, curve, and duration arguments must not be null.
Implementation
AnimatedPadding({
super.key,
required this.padding,
this.child,
super.curve,
required super.duration,
super.onEnd,
}) : assert(padding != null),
assert(padding.isNonNegative);