AnimatedFractionallySizedBox constructor
const
AnimatedFractionallySizedBox({
- Key? key,
- Widget? child,
- double? widthFactor,
- double? heightFactor,
- AlignmentGeometry alignment = Alignment.center,
- required Duration duration,
- Curve curve = Curves.linear,
- 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);