TabItem class
Represents a item in a tab bar. See: Tab
Constructors
- TabItem({required IndexedWidgetBuilder builder, required IndexedWidgetBuilder tabItemBuilder})
-
If it's necessary to use the index of each tab, then use this builder.
const
-
TabItem.custom(IndexedWidgetBuilder tabBuilder, {WidgetBuilder? builder, String? defaultTitle, Map<
String, WidgetBuilder> ? routes, RouteFactory? onGenerateRoute, RouteFactory? onUnknownRoute, }) -
Creates a tab item with a custom widget.
factory
-
TabItem.icon(IconData icon, {WidgetBuilder? builder, String? defaultTitle, Map<
String, WidgetBuilder> ? routes, RouteFactory? onGenerateRoute, RouteFactory? onUnknownRoute, }) -
Creates a tab item with a icon.
factory
-
TabItem.text(String text, {WidgetBuilder? builder, String? defaultTitle, Map<
String, WidgetBuilder> ? routes, RouteFactory? onGenerateRoute, RouteFactory? onUnknownRoute, }) -
Creates a tab item with text.
factory
Properties
- builder → IndexedWidgetBuilder
-
The 'page' used for the tab.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tabItemBuilder → IndexedWidgetBuilder
-
A custom item to be built for the tab bar.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited