CupertinoTabPageState class
The state for a CupertinoTabPage. Creates and manages a
CupertinoTabController that can be accessed by calling
CupertinoTabPage.of(context).controller
.
- Inheritance
-
- Object
- PageState<
CupertinoTabPage> - CupertinoTabPageState
- Mixed in types
Constructors
- CupertinoTabPageState()
- Initializes the state for a CupertinoTabPage.
Properties
- backBehavior → TabBackBehavior
-
How the back button should be handled.
no setteroverride
- controller → CupertinoTabController
-
A tab controller that is managed by this page state.
final
- 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 → CupertinoTabPage
-
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, otherwisefalse
.inherited -
maybeSetChildPages(
Iterable< PageContainer< pages) → boolPage> > -
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
-
tabBuilder(
BuildContext context, int index) → Widget -
Returns the PageStackNavigator for the given
index
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited