NavigatorManager class
Constructors
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getRouteParams(
BuildContext context) → Map< String, String> -
获取路由参数(一般配合NavigatorManager.go一起使用)
context
页面或控件视图的上下文 -
go(
{String route = "/", required WidgetBuilder errorRoute, Map< String, dynamic> ? initParams}) → MaterialPageRoute -
路由跳转(一般配合onGenerateRoute一起使用)
通过此方式跳转的对应页面以NavigatorManager.getRouteParams方式获取
route
路由及参数地址,通过CSRouterUrlParse
解析后查找CSRouter.pageRoutes()
再跳转;errorRoute
在route解析失败或未搭到对应的路由时渲染当前页面initParams
初始化参数 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → NavigatorManager
-
no setter