AnimatedSize constructor

const AnimatedSize({Key key, Widget child, AlignmentGeometry alignment: Alignment.center, Curve curve: Curves.linear, @required Duration duration, @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 AnimatedSize({
  Key key,
  Widget child,
  this.alignment = Alignment.center,
  this.curve = Curves.linear,
  @required this.duration,
  @required this.vsync,
}) : super(key: key, child: child);