NavigatorManager class

组件栈管理器

Constructors

factory

Properties

contextList List<BuildContext>
read-only
hashCode int
The hash code for this object.
read-onlyinherited
isCallRemoved bool
read / write
isUseBase bool
页面是否使用了基类
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

addStatelessWidget(BuildContext context) → void
把statelessWidget添加入栈
addWidget(BaseWidgetState<BaseStatefulWidget> state) → void
把widget添加入栈
getFirstPage() BaseWidgetState<BaseStatefulWidget>
获取栈内第一个组件
getSecondPage() BaseWidgetState<BaseStatefulWidget>
获取栈内第二个组件
getWidgetName(BuildContext context) String
获取组件名称
isBasePage({BuildContext context}) bool
栈顶是否是基类页面
isTopPage(BaseWidgetState<BaseStatefulWidget> state) bool
判断statefulWidget页面是否处于栈顶
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
remainLastPage() → void
只保留栈内最后一个页面,用于navigator remove行为
removeAllPage() → void
删除所有元素
removeLastPage() → void
删除栈顶元素
removeWidget() → void
把widget移除出栈
toString() String
A string representation of this object.
inherited

Operators

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