setDefaultTransition method

void setDefaultTransition(
  1. Transition transition, {
  2. Duration? duration,
})

set the default transition for all pages

duration set the transition duration for all pages by default duration is 300 milliseconds

Implementation

void setDefaultTransition(Transition transition, {Duration? duration}) {
  _transition = transition;
  if (duration != null) {
    _transitionDuration = duration;
  }
}