TabState class

The state of a single tab.

Implemented types

Constructors

TabState({required String? tabLabel, required IconData tabIcon, required AppRoute<dynamic, RouteParams> route, bool isDesktop = true, required int tabIndex, required GlobalKey<NavigatorState> navigatorKey})
TabState.floating({required String? tabLabel, required IconData tabIcon, required AppRoute<dynamic, RouteParams> route, bool isDesktop = true, required GlobalKey<NavigatorState> navigatorKey})
TabState.ofAppRouteMatch(AppRouteMatch<dynamic, RouteParams> match, {required IconData tabIcon, required int tabIndex, bool isDesktop = true, required GlobalKey<NavigatorState> key})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isDesktop bool
final
A navigator key that can be used to retrieve the navigation stack for this tab
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
route → AppRoute<dynamic, RouteParams>
The default route for this tab
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scroller ScrollController
A scroll controller, used to do scrolling when navigating to a tab
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
tabIcon IconData
THe icon to be displayed
final
tabIndex int?
Which index this tab is placed at
final
tabLabel String?
The label for this tab
final

Methods

dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withIndex(int index) TabState

Operators

operator ==(Object other) bool
The equality operator.
inherited