AnimatedSwitcher constructor
Creates an AnimatedSwitcher.
The duration, transitionBuilder, layoutBuilder, switchInCurve, and
switchOutCurve parameters must not be null.
Implementation
const AnimatedSwitcher({
Key key,
this.child,
@required this.duration,
this.switchInCurve = Curves.linear,
this.switchOutCurve = Curves.linear,
this.transitionBuilder = AnimatedSwitcher.defaultTransitionBuilder,
this.layoutBuilder = AnimatedSwitcher.defaultLayoutBuilder,
}) : assert(duration != null),
assert(switchInCurve != null),
assert(switchOutCurve != null),
assert(transitionBuilder != null),
assert(layoutBuilder != null),
super(key: key);