Inheritance
System.Object
Navigator
public class Navigator : StatefulWidget
Constructors
Declaration
public Navigator(Key key = null, string initialRoute = null, RouteFactory onGenerateRoute = null, RouteFactory onUnknownRoute = null, List<NavigatorObserver> observers = null)
Parameters
Fields
Declaration
public static readonly string defaultRouteName
Field Value
Type |
Description |
System.String |
|
Declaration
public readonly string initialRoute
Field Value
Type |
Description |
System.String |
|
Declaration
public readonly List<NavigatorObserver> observers
Field Value
Declaration
public readonly RouteFactory onGenerateRoute
Field Value
Declaration
public readonly RouteFactory onUnknownRoute
Field Value
Methods
canPop(BuildContext)
Declaration
public static bool canPop(BuildContext context)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override State createState()
Returns
Overrides
maybePop(BuildContext, Object)
Declaration
public static IPromise<bool> maybePop(BuildContext context, object result = null)
Parameters
Type |
Name |
Description |
BuildContext |
context |
|
System.Object |
result |
|
Returns
Type |
Description |
IPromise<System.Boolean> |
|
of(BuildContext, Boolean, Boolean)
Declaration
public static NavigatorState of(BuildContext context, bool rootNavigator = false, bool nullOk = false)
Parameters
Type |
Name |
Description |
BuildContext |
context |
|
System.Boolean |
rootNavigator |
|
System.Boolean |
nullOk |
|
Returns
pop(BuildContext, Object)
Declaration
public static bool pop(BuildContext context, object result = null)
Parameters
Type |
Name |
Description |
BuildContext |
context |
|
System.Object |
result |
|
Returns
Type |
Description |
System.Boolean |
|
popAndPushNamed(BuildContext, String, Object, Object)
Declaration
public static IPromise<object> popAndPushNamed(BuildContext context, string routeName, object result = null, object arguments = null)
Parameters
Type |
Name |
Description |
BuildContext |
context |
|
System.String |
routeName |
|
System.Object |
result |
|
System.Object |
arguments |
|
Returns
Type |
Description |
IPromise<System.Object> |
|
popUntil(BuildContext, RoutePredicate)
Declaration
public static void popUntil(BuildContext context, RoutePredicate predicate)
Parameters
push(BuildContext, Route)
Declaration
public static IPromise<object> push(BuildContext context, Route route)
Parameters
Returns
Type |
Description |
IPromise<System.Object> |
|
pushAndRemoveUntil(BuildContext, Route, RoutePredicate)
Declaration
public static IPromise<object> pushAndRemoveUntil(BuildContext context, Route newRoute, RoutePredicate predicate)
Parameters
Returns
Type |
Description |
IPromise<System.Object> |
|
pushNamed(BuildContext, String, Object)
Declaration
public static IPromise<object> pushNamed(BuildContext context, string routeName, object arguments = null)
Parameters
Type |
Name |
Description |
BuildContext |
context |
|
System.String |
routeName |
|
System.Object |
arguments |
|
Returns
Type |
Description |
IPromise<System.Object> |
|
pushNamedAndRemoveUntil(BuildContext, String, RoutePredicate, Object)
Declaration
public static IPromise<object> pushNamedAndRemoveUntil(BuildContext context, string newRouteName, RoutePredicate predicate, object arguments = null)
Parameters
Returns
Type |
Description |
IPromise<System.Object> |
|
pushReplacement(BuildContext, Route, Object)
Declaration
public static IPromise<object> pushReplacement(BuildContext context, Route newRoute, object result = null)
Parameters
Returns
Type |
Description |
IPromise<System.Object> |
|
pushReplacementNamed(BuildContext, String, Object, Object)
Declaration
public static IPromise<object> pushReplacementNamed(BuildContext context, string routeName, object result = null, object arguments = null)
Parameters
Type |
Name |
Description |
BuildContext |
context |
|
System.String |
routeName |
|
System.Object |
result |
|
System.Object |
arguments |
|
Returns
Type |
Description |
IPromise<System.Object> |
|
removeRoute(BuildContext, Route)
Declaration
public static void removeRoute(BuildContext context, Route route)
Parameters
replace(BuildContext, Route, Route)
Declaration
public static void replace(BuildContext context, Route oldRoute = null, Route newRoute = null)
Parameters
replaceRouteBelow(BuildContext, Route, Route)
Declaration
public static void replaceRouteBelow(BuildContext context, Route anchorRoute = null, Route newRoute = null)
Parameters