AnimatedPadding constructor

AnimatedPadding({
  1. Key? key,
  2. required EdgeInsetsGeometry padding,
  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.

Implementation

AnimatedPadding({
  super.key,
  required this.padding,
  this.child,
  super.curve,
  required super.duration,
  super.onEnd,
}) : assert(padding.isNonNegative);