RouteTransitions constructor
RouteTransitions({
- required BuildContext context,
- required Widget child,
- AnimationType animation = AnimationType.normal,
- Duration duration = const Duration(milliseconds: 300),
- bool replacement = false,
Implementation
RouteTransitions({
required this.context,
required this.child,
this.animation = AnimationType.normal,
this.duration = const Duration(milliseconds: 300),
this.replacement = false
}) {
switch (this.animation) {
case AnimationType.normal:
this._normalTransition();
break;
case AnimationType.fadeIn:
this._fadeInTransition();
break;
default:
}
}