StackPageState class
The current state of an StackPage. Created when an instance of the page is shown.
- Inheritance
- Mixed in types
Constructors
- StackPageState()
- Initializes the state for an StackPage.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- page → StackPage
-
The StatefulPage associated witht this page state.
no setterinherited
- routeData → RouteData
-
Route information for this page.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stack → PageStack
-
The stack for this page, which can be passed to a
StackNavigator
.final
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
createPage(
) → Page -
Gets the actual Flutter Page object for passing to a Navigator.
override
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
getCurrentPages(
) → Iterable< PageContainer< Page> > -
Returns this page, and any descendant pages below it in the navigation
hierarchy.
override
-
initState(
) → void -
Called once to initialize the state of this page.
inherited
-
maybePop<
E extends Object?> ([E? result]) → Future< bool> -
Called when popping a route stack. Returns
true
if this page container has been able to pop a page, otherwisefalse
.override -
maybeSetChildPages(
Iterable< PageContainer< pages) → boolPage> > -
See if this page can consume the list of
pages
as children. For instance a tab page could accept the pages and put them in one of its tab's stacks.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited