TabBarIndicatorSize enum Null safety

Defines how the bounds of the selected tab indicator are computed.

See also:

  • TabBar, which displays a row of tabs.
  • TabBarView, which displays a widget for the currently selected tab.
  • TabBar.indicator, which defines the appearance of the selected tab indicator relative to the tab's bounds.
Inheritance

Constructors

TabBarIndicatorSize()
const

Values

tab → const TabBarIndicatorSize

The tab indicator's bounds are as wide as the space occupied by the tab in the tab bar: from the right edge of the previous tab to the left edge of the next tab.

TabBarIndicatorSize()
label → const TabBarIndicatorSize

The tab's bounds are only as wide as the (centered) tab widget itself.

This value is used to align the tab's label, typically a Tab widget's text or icon, with the selected tab indicator.

TabBarIndicatorSize()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<TabBarIndicatorSize>
A constant List of the values in this enum, in order of their declaration.
[tab, label]