AnimatedFractionallySizedBox constructor

const AnimatedFractionallySizedBox({
  1. Key? key,
  2. Widget? child,
  3. double? widthFactor,
  4. double? heightFactor,
  5. AlignmentGeometry alignment = Alignment.center,
  6. required Duration duration,
  7. Curve curve = Curves.linear,
  8. VoidCallback? onEnd,
})

Creates a container that animates its parameters implicitly.

The curve and duration arguments must not be null. If non-null, the widthFactor and heightFactor arguments must be non-negative.

Implementation

const AnimatedFractionallySizedBox({
  Key? key,
  this.child,
  this.widthFactor,
  this.heightFactor,
  this.alignment = Alignment.center,
  required Duration duration,
  Curve curve = Curves.linear,
  VoidCallback? onEnd,
})  : assert(widthFactor == null || widthFactor >= 0.0),
      assert(heightFactor == null || heightFactor >= 0.0),
      super(key: key, curve: curve, duration: duration, onEnd: onEnd);