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