FastNavigationExtension extension

Extension on BuildContext for navigation

on

Methods

canPop() bool
Whether the navigator can be popped
pop<T extends Object?>([T? result]) → void
Pop the current page
push<T extends Object?>(Widget page, {RouteType? routeType, RouteSettings? settings, bool? maintainState, bool? fullscreenDialog, bool? allowSnapshotting}) Future<T?>
Navigate to an anonymous page route
pushAndRemoveAll<T extends Object?>(Widget page, {RouteType? routeType, RouteSettings? settings, bool? maintainState, bool? fullscreenDialog, bool? allowSnapshotting}) Future<T?>
Remove all pages and push a new anonymous page route
pushAndRemoveUntil<T extends Object?>(Widget page, bool predicate(Route route), {RouteType? routeType, RouteSettings? settings, bool? maintainState, bool? fullscreenDialog, bool? allowSnapshotting}) Future<T?>
Remove pages until predicate returns true and push a new anonymous page route
pushNamed<T extends Object?>(String routeName, {Object? arguments}) Future<T?>
Navigate to a named page route
pushNamedAndRemoveAll<T extends Object?>(String newRouteName, {Object? arguments}) Future<T?>
Remove all pages and push a named page route
pushNamedAndRemoveUntil<T extends Object?>(String newRouteName, bool predicate(Route route), {Object? arguments}) Future<T?>
Remove pages until predicate returns true and push a named page route
pushReplacement<T extends Object?, TO extends Object?>(Widget page, {RouteType? routeType, RouteSettings? settings, bool? maintainState, bool? fullscreenDialog, bool? allowSnapshotting, TO? result}) Future<T?>
Replace the current page with a new anonymous page route
pushReplacementNamed<T extends Object?, TO extends Object?>(String routeName, {TO? result, Object? arguments}) Future<T?>
Replace the current page with a named page route