RoutingNavigatorStateExtensions extension

Provides extension methods for NavigatorState.

NavigatorStateの拡張メソッドを提供します。

on

Methods

popAndPushPage<T extends Object?, TO extends Object?>(RouteQuery routePage, {TO? result, TransitionQuery? query}) Future<T?>
You can return one page and go to the routePage page.
popUntilNamed(String name) → void
Page back until you find the page for name.
popUntilPage(RouteQuery routeQuery) → void
Page back to the routeQuery page.
pushPage<T extends Object?>(RouteQuery routePage, [TransitionQuery? query]) Future<T?>
Moves to a new routePage.
pushPageAndRemoveUntil<T extends Object?>(RouteQuery newRoutePage, RoutePredicate predicate, [TransitionQuery? query]) Future<T?>
After returning to the page that matches the predicate condition, the user is redirected to the newRoutePage page.
pushReplacementPage<T extends Object?, TO extends Object?>(RouteQuery routePage, {TO? result, TransitionQuery? query}) Future<T?>
Replace the current page with the new routePage.
resetAndPush<T extends Object?>(Route<T> newRoute) Future<T?>
After returning to the first page, you will be redirected to the newRoute page.
resetAndPushNamed<T extends Object?>(String newRouteName, {Object? arguments}) Future<T?>
After returning to the first page, you will be redirected to the page named newRouteName.
resetAndPushPage<T extends Object?>(RouteQuery newRoutePage, [TransitionQuery? query]) Future<T?>
After returning to the first page, you will be redirected to the newRoutePage page.