Transitions constructor

Transitions(
  1. {required BuildContext context,
  2. required Widget child,
  3. bool? replacement = false,
  4. bool? removeUntil = false,
  5. AnimationType? animationType = AnimationType.fadeIn,
  6. 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;
  }
}