AnimatedSizeModifier constructor

const AnimatedSizeModifier({
  1. Key? key,
  2. Key? modifierKey,
  3. Widget? child,
  4. AlignmentGeometry alignment = Alignment.center,
  5. Curve curve = Curves.linear,
  6. required Duration duration,
  7. Duration? reverseDuration,
  8. @Deprecated('This field is now ignored. ' 'This feature was deprecated after v2.2.0-10.1.pre.') TickerProvider? vsync,
  9. 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,
});