MeteorNativeNavigator class

实现Native层页面路由

Inheritance

Constructors

MeteorNativeNavigator()

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isRoot(String routeName) Future<bool>
判断路由routeName是否为根路由
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop<T extends Object?>([T? result]) Future<void>
pop到上一个页面
override
popToRoot() Future<void>
pop 到根页面
override
popUntil(String routeName, {bool isFarthest = false}) Future<void>
pop 到指定页面并替换当前页面
override
popUntilLastNative<T extends Object?>() Future<void>
pop 到最近的一个原生页面
override
pushNamed<T extends Object?>(String routeName, {PageType pageType = PageType.flutter, bool isOpaque = true, bool animated = true, bool present = false, Map<String, dynamic>? arguments}) Future<T?>
push 到一个已经存在路由表的页面
override
pushNamedAndRemoveUntil<T extends Object?>(String routeName, String untilRouteName, {PageType pageType = PageType.flutter, bool isOpaque = true, bool animated = true, Map<String, dynamic>? arguments}) Future<T?>
push 到指定页面,同时会清除从页面untilRouteName页面到指定routeName链路上的所有页面
override
pushNamedAndRemoveUntilRoot<T extends Object?>(String routeName, {PageType pageType = PageType.flutter, bool isOpaque = true, bool animated = true, Map<String, dynamic>? arguments}) Future<T?>
push 到指定页面,同时会清除从页面untilRouteName页面到指定routeName链路上的所有页面
override
pushReplacementNamed<T extends Object?, TO extends Object?>(String routeName, {PageType pageType = PageType.flutter, bool isOpaque = true, bool animated = true, Map<String, dynamic>? arguments}) Future<T?>
push 到指定页面并替换当前页面
override
rootRouteName() Future<String?>
根路由名称
override
routeExists(String routeName) Future<bool>
判断路由routeName是否存在
override
routeNameStack() Future<List<String>>
当前路由名栈
override
topRouteIsNative() Future<bool>
topRouteName() Future<String?>
最上层路由名称
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited