Each TabBar tab can display either a title text, an icon, or both. An icon can be specified by either the icon or iconBuilder parameters. In either case the icon will occupy a 24x24 box above the title text. If iconBuilder is specified its color parameter is the color that an ordinary icon would have been drawn with. The color reflects that tab's selection state.

Constructors

TabLabel({String text, Widget icon, TabLabelIconBuilder iconBuilder })

Creates a tab label description.

const

Properties

hasIcon bool

Whether this label has an icon (specified either using icon or iconBuilder).

read-only
hasText bool

Whether this label has any text (specified using text).

read-only
icon Widget

The icon to display as the label of the tab.

read-only
iconBuilder TabLabelIconBuilder

Called if icon is null to build an icon as a label for this tab.

read-only
text String

The text to display as the label of the tab.

read-only
hashCode int

Get a hash code for this object.

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

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