Transitions constructor
Transitions(- {required BuildContext context,
- required Widget child,
- bool? replacement = false,
- bool? removeUntil = false,
- AnimationType? animationType = AnimationType.fadeIn,
- Duration? duration = const Duration(milliseconds: 450)}
)
Implementation
Transitions({
required this.context,
required this.child,
this.replacement = false,
this.removeUntil = false,
this.animationType = AnimationType.fadeIn,
this.duration = const Duration(
milliseconds: 450,
),
}) {
switch (animationType!) {
case AnimationType.normal:
_normalTransition();
break;
case AnimationType.fadeIn:
_fadeInTransition();
break;
}
}