SynapticTransitions constructor

SynapticTransitions({
  1. required BuildContext context,
  2. required Widget child,
  3. bool replacement = false,
  4. AnimationType? animation = AnimationType.normal,
  5. Duration duration = const Duration(milliseconds: 300),
})

Implementation

SynapticTransitions(
    {required this.context,
    required this.child,
    this.replacement = false,
    this.animation = AnimationType.normal,
    this.duration = const Duration(milliseconds: 300)}) {
  switch (animation) {
    case AnimationType.normal:
      _normalTransition();
      break;
    case AnimationType.fadeIn:
      _fadeInTransition();
      break;
    default:
  }
}