TabView class

A tab view with a Navigator history.

Inheritance

Constructors

TabView({WidgetBuilder? builder, GlobalKey<NavigatorState>? navigatorKey, Map<String, WidgetBuilder>? routes, RouteFactory? onGenerateRoute, RouteFactory? onUnknownRoute, String? defaultTitle, List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[], Key? key})
const

Properties

builder WidgetBuilder?
The widget builder for the default route of the tab view (Navigator.defaultRouteName, which is /).
final
defaultTitle String?
The title of the default route.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
The navigator key.
final
The list of observers for the Navigator created in this tab view.
final
onGenerateRoute RouteFactory?
The route generator callback used when the tab view is navigated to a named route.
final
onUnknownRoute RouteFactory?
Called when onGenerateRoute also fails to generate a route.
final
routes Map<String, WidgetBuilder>?
This tab view's routing table.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<TabView>
Creates the mutable state for this widget at a given location in the tree.
override
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