TButtonGroupItem class

Defines an item within a TButtonGroup.

Constructors

TButtonGroupItem({dynamic icon, dynamic activeIcon, (double, double)? turns, String? text, bool loading = false, String loadingText = 'Loading...', Color? color, String? tooltip, bool active = false, Widget? child, bool? showTick, Alignment? tickAlignment, Widget? tickWidget, VoidCallback? onTap, dynamic onPressed(TButtonPressOptions)?})
Creates a button group item.

Properties

active bool
Whether the button is currently active/selected.
final
activeIcon → dynamic
Optional icon when active. Supports IconData, List<List<dynamic>> (HugeIcon), or Widget.
final
child Widget?
Custom child widget (overrides icon/text).
final
color Color?
Custom color for the button.
final
hashCode int
The hash code for this object.
no setterinherited
icon → dynamic
Optional icon for the button. Supports IconData, List<List<dynamic>> (HugeIcon), or Widget.
final
loading bool
Whether the button is in a loading state.
final
loadingText String
Text to display while loading.
final
onPressed → dynamic Function(TButtonPressOptions)?
Async press callback with loading control.
final
onTap VoidCallback?
Simple tap callback.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showTick bool?
Whether to show a checkmark tick when the button is active.
final
text String?
Optional text label.
final
tickAlignment Alignment?
The alignment of the tick indicator.
final
tickWidget Widget?
Custom widget to display for the tick indicator.
final
tooltip String?
Tooltip text.
final
turns → (double, double)?
Rotation turns (initial, active) for animation when active state changes.
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