AnimatedDimensionSizedBox constructor

AnimatedDimensionSizedBox({
  1. Key? key,
  2. Dimension? width,
  3. Dimension? height,
  4. Alignment? alignment,
  5. Widget? child,
  6. Curve curve = Curves.linear,
  7. required Duration duration,
  8. 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

AnimatedDimensionSizedBox({
  Key? key,
  this.width,
  this.height,
  this.alignment,
  this.child,
  Curve curve = Curves.linear,
  required Duration duration,
  VoidCallback? onEnd,
}) : super(key: key, curve: curve, duration: duration, onEnd: onEnd);