IndexedPageStateMixIn<T extends IndexedRouteMixIn> mixin
Provides functionality for indexed pages, including managing the active index and a list of PageStack objects.
- Superclass Constraints
- Implemented types
- Mixin Applications
Properties
- backBehavior → TabBackBehavior
-
How the back button should be handled.
final
- currentStack → PageStack
-
The currently active stack of pages.
no setter
- 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 pair
- page → T
-
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 setter
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.
inherited
-
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> > -
Attempts to handle a list of child pages.
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