Coordinates the tab selection between a TabBar and a TabBarView.
Place a TabBarSelection widget in the tree such that it is a common ancestor of both the TabBar and the TabBarView. Both the TabBar and the TabBarView can alter which tab is selected. They coodinate by listening to the selection value stored in a common ancestor TabBarSelection selection widget.
- Inheritance
- Object
- Widget
- StatefulWidget
- TabBarSelection
Static Methods
-
of(
BuildContext context) → TabBarSelectionState -
The state from the closest instance of this class that encloses the given context.
Constructors
- TabBarSelection({Key key, T value, @required List<T> values, ValueChanged<T> onChanged, @required Widget child })
-
Creates a tab bar selection.
Properties
- child → Widget
-
The widget below this widget in the tree.
read-only - onChanged → ValueChanged<T>
-
Called when the value of the selection should change.
read-only - value → T
-
The current value of the selection.
read-only - values → List<T>
-
The list of possible values that the selection can obtain.
read / write - hashCode → int
-
Get a hash code for this object.
read-only, inherited - key → Key
-
Controls how one widget replaces another widget in the tree.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
createState(
) → TabBarSelectionState<T> -
Creates the mutable state for this widget at a given location in the tree.
-
debugFillDescription(
List<String> description) → void -
Add additional information to the given description for use by
toString
. -
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited -
toStringShort(
) → String -
A short, textual description of this widget.
inherited