Router class

Annotations
  • @Deprecated('用系统提供的Navigator代替')

Constructors

Router()

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Methods

loading<T>(BuildContext context, Future<T> futureTask) → Future<T>
等待页
导航
@Deprecated('建议使用onGenerateRoute方法去路由, 但是这个方法目前没用发现bug, 也还是可以使用的')
自定义导航
@Deprecated('用navigate代替')
不保留源页面的跳转
@Deprecated('用navigate代替')
自定义route的导航
@Deprecated('用navigate代替')
提供BLoC的导航
@Deprecated('用navigate代替')
pop<T>(BuildContext context, [T data]) → void
退出当前页
popTo<T>(BuildContext context, Type routeType) → void
退出到目标页
pushAndClearAll(BuildContext context, Widget widget) → void