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