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