push<T> method
Push the given page
onto the navigator.
transitionDuration
will be Duration.zero when transition
is equals to Transition.none
backGestureEnabled
ignored when transition
is equals to Transition.material or Transition.cupertino
Implementation
Future<T?> push<T>(
Widget page, {
Object? arguments,
bool maintainState = true,
bool fullscreenDialog = false,
Transition? transition,
Duration? transitionDuration,
bool backGestureEnabled = false,
}) {
_validateRouterState();
return _navigator.push<T>(
page,
arguments: arguments,
maintainState: maintainState,
fullscreenDialog: fullscreenDialog,
transition: transition,
transitionDuration: transitionDuration,
backGestureEnabled: backGestureEnabled,
);
}