DefaultKeyedTabController<K> class
abstract
The KeyedTabController for descendant widgets that don't specify one explicitly.
Unlike the standard Flutter's DefaultTabController, this widget does not re-create the controller when its properties change, but only updates it. The controller is thus safe to cache and will not be disposed until this widget is disposed.
This is possible because KeyedTabController allows changing keys and the animation duration without re-creation.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- DefaultKeyedTabController
Constructors
-
DefaultKeyedTabController.fromKeys({Key? key, required Widget child, required List<
K> keys, Duration? animationDuration, K? initialKey, ValueChanged<K?> ? onChanged}) -
Provides KeyedTabController that is created from
keys
andinitialKey
.constfactory -
DefaultKeyedTabController.fromUnanimated({Key? key, required Widget child, required UnanimatedKeyedTabController<
K> controller, Duration? animationDuration, ValueChanged<K?> ? onChanged}) -
Provides KeyedTabController that is linked to a given
KeyedUnanimatedTabController
controller
.constfactory
Properties
Methods
-
createElement(
) → Element -
Inflates this configuration to a concrete instance.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited