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