SynapticTransitions constructor
SynapticTransitions({
- required BuildContext context,
- required Widget child,
- bool replacement = false,
- AnimationType? animation = AnimationType.normal,
- 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:
}
}