SimpleAnimatedSize constructor

const SimpleAnimatedSize({
  1. Key? key,
  2. required Widget child,
  3. AlignmentGeometry alignment = Alignment.center,
  4. Curve curve = Curves.linear,
  5. required Duration duration,
  6. required Duration reverseDuration,
  7. required TickerProvider vsync,
})

Creates a widget that animates its size to match that of its child.

The curve and duration arguments must not be null.

Implementation

const SimpleAnimatedSize({
  Key? key,
  required Widget child,
  this.alignment = Alignment.center,
  this.curve = Curves.linear,
  required this.duration,
  required this.reverseDuration,
  required this.vsync,
}) : super(key: key, child: child);