TButtonGroupItem class

Defines an item within a TButtonGroup.

Constructors

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

Properties

active bool
Whether the button is currently active/selected.
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 IconData?
Optional icon for the button.
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
text String?
Optional text label.
final
tooltip String?
Tooltip text.
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