AnimatedSize constructor
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);