EasyTransition.scalePushReplacement constructor

EasyTransition.scalePushReplacement({
  1. required Widget child,
  2. required Widget pageToPush,
  3. Curve? curve,
  4. Curve? reverseCurve,
  5. int? reverseTransitionDurationMilliseconds,
  6. int? transitionDurationMilliseconds,
  7. Alignment? transitionAlignment,
  8. bool isDisabled = false,
})

the default constructor will PushReplacement a scale transition

Implementation

EasyTransition.scalePushReplacement({
  required this.child,
  required this.pageToPush,
  this.curve,
  this.reverseCurve,
  this.reverseTransitionDurationMilliseconds,
  this.transitionDurationMilliseconds,
  this.transitionAlignment,
  this.isDisabled = false,
}) {
  _type = 0;

  _navigationType = NavigationType.PushReplacement;
}