ElRouterService class
Constructors
-
ElRouterService({GlobalKey<
NavigatorState> ? key}) -
factory
Properties
- context → BuildContext
-
顶级路由所持有的 context,通过此 context 可以进行全局路由操作
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
key
↔ GlobalKey<
NavigatorState> -
顶级路由导航 key,请将它附加到顶级 App 的 navigatorKey 中
latefinal
- overlay → OverlayState
-
顶级路由所持有的 Overlay 对象
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → NavigatorState
-
访问全局路由 State 对象
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pop<
T> ([T? result]) → void - 从根路由弹出一个页面
-
push<
T extends Object?> (Route< T> route) → Future<T?> - 往根路由推送一个页面
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited