AnimatedPadding constructor
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({
  Key key,
  @required this.padding,
  this.child,
  Curve curve = Curves.linear,
  @required Duration duration,
}) : assert(padding != null),
     assert(padding.isNonNegative),
     super(key: key, curve: curve, duration: duration);