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, dynamic badge, Alignment? badgeAlignment, Color? badgeColor, Color? badgeTextColor, bool showFlat = false, 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
badge → dynamic
Optional badge to display on the button.
final
badgeAlignment → Alignment?
The alignment of the badge overlay.
final
badgeColor → Color?
The background color for the badge.
final
badgeTextColor → Color?
The text color for the badge.
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
showFlat → bool
Whether this action should always render flat (inline) even in hybrid menu mode.
final
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