AnimatedAlign constructor Null safety
- {Key? key,
- required AlignmentGeometry alignment,
- Widget? child,
- double? heightFactor,
- double? widthFactor,
- Curve curve = Curves.linear,
- required Duration duration,
- VoidCallback? onEnd}
Creates a widget that positions its child by an alignment that animates implicitly.
The alignment, curve, and duration arguments must not be null.
Implementation
const AnimatedAlign({
super.key,
required this.alignment,
this.child,
this.heightFactor,
this.widthFactor,
super.curve,
required super.duration,
super.onEnd,
}) : assert(alignment != null),
assert(widthFactor == null || widthFactor >= 0.0),
assert(heightFactor == null || heightFactor >= 0.0);