AnimatedSizeModifier constructor
const
AnimatedSizeModifier({
- Key? key,
- Key? modifierKey,
- Widget? child,
- AlignmentGeometry alignment = Alignment.center,
- Curve curve = Curves.linear,
- required Duration duration,
- Duration? reverseDuration,
- @Deprecated('This field is now ignored. ' 'This feature was deprecated after v2.2.0-10.1.pre.') TickerProvider? vsync,
- Clip clipBehavior = Clip.hardEdge,
Creates a widget that animates its size to match that of its child.
The curve
and duration
arguments must not be null.
Implementation
const AnimatedSizeModifier({
super.key,
super.modifierKey,
super.child,
this.alignment = Alignment.center,
this.curve = Curves.linear,
required this.duration,
this.reverseDuration,
@Deprecated('This field is now ignored. '
'This feature was deprecated after v2.2.0-10.1.pre.')
this.vsync,
this.clipBehavior = Clip.hardEdge,
});