AnimatedSize constructor Null safety
- {Key? key,
- 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.
Implementation
const AnimatedSize({
super.key,
this.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.'
)
TickerProvider? vsync,
this.clipBehavior = Clip.hardEdge,
}) : assert(clipBehavior != null);