IndexedPageState class

The current state of an IndexedPage. Created when an instance of the page is shown. Provides a list of track of the currently active index.

  • stacks - a list of PageStack objects that manage the child routes.

  • index - the currently active index.

Inheritance
Mixed in types

Constructors

IndexedPageState()
Initializes the state for an IndexedPage.

Properties

backBehavior TabBackBehavior
How the back button should be handled.
no setteroverride
currentStack PageStack
The currently active stack of pages.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
index int
The current tab index.
getter/setter pairinherited
page IndexedPage
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
stacks List<PageStack>
A list of PageStack objects, for each child path specified in the page.
no setterinherited

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.
inherited
initState() → void
Called once to initialize the state of this page.
override
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, otherwise false.
inherited
maybeSetChildPages(Iterable<PageContainer<Page>> pages) bool
Attempts to handle a list of child pages.
inherited
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