Creates a container that animates its parameters implicitly.
The curve and duration arguments must not be null.
Source
AnimatedContainer({
Key key,
this.child,
this.constraints,
this.decoration,
this.foregroundDecoration,
this.margin,
this.padding,
this.transform,
this.width,
this.height,
Curve curve: Curves.linear,
@required Duration duration,
}) : super(key: key, curve: curve, duration: duration) {
assert(decoration == null || decoration.debugAssertIsValid());
assert(foregroundDecoration == null || foregroundDecoration.debugAssertIsValid());
assert(margin == null || margin.isNonNegative);
assert(padding == null || padding.isNonNegative);
assert(constraints == null || constraints.debugAssertIsValid());
}