DesignTabIndicatorDetails class

Where a look paints the indicator, and the selected tab's states.

Annotations

Constructors

DesignTabIndicatorDetails({required Rect rect, required Axis direction, Rect? tabRect, Set<WidgetState> states = const <WidgetState>{}})
The indicator's place; the bar makes it. tabRect is rect unless given.
const

Properties

direction → Axis
Which way the tabs run.
final
hashCode → int
The hash code for this object.
no setteroverride
rect → Rect
The selected tab's face in the bar, moved and resized between tabs as the selection moves; the indicator is laid out in it. A tab's face is what a DesignTapTarget in it holds, when its target stands larger than its face (the target the hit area, the face its own size in it); otherwise the whole tab.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
states → Set<WidgetState>
The selected tab's states: WidgetState.hovered, WidgetState.pressed and WidgetState.focused as the tab has them (an indicator painted in the tab's hover and press inks), with WidgetState.selected and, a disabled tab, WidgetState.disabled.
final
tabRect → Rect
The selected tab's whole box, its hit area, moved and resized as rect is: rect itself unless the tab's touch target stands larger than its face.
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.
override