TTab<T> class

A tab item for use with TTabs.

Type parameter:

  • T: The type of the tab value

Constructors

TTab({required T value, String? text, IconData? icon, bool isEnabled = true, bool isActive = false})
Creates a tab item.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
icon IconData?
The icon for the tab.
final
isActive bool
Whether to show an active indicator dot.
final
isEnabled bool
Whether the tab is enabled.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
The text label for the tab.
final
value → T
The value associated with this tab.
final

Methods

calculateWidth() double
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

Static Methods

calculateTabsWidth(List<TTab> tabs) double