M3EButtonGroupAction class
Declarative description of one action in an M3EButtonGroup.
Each action is rendered as an M3EButton. Provide icon and/or label.
Constructors
-
M3EButtonGroupAction({Widget? icon, Widget? selectedIcon, Widget? label, Widget? selectedLabel, bool? isSelected, bool enabled = true, M3EButtonDecoration? decoration, double? minWidth, double? width, FocusNode? focusNode, bool autofocus = false, ValueChanged<
bool> ? onFocusChange, String? semanticLabel, String? tooltip, bool? enableFeedback}) -
Creates a group action.
const
Properties
- autofocus → bool
-
Whether this action requests initial focus.
final
- decoration → M3EButtonDecoration?
-
Per-action style overrides; merges over the group decoration.
final
- enabled → bool
-
Whether the action can be pressed.
final
- enableFeedback → bool?
-
Whether to play platform feedback; falls back to the group setting.
final
- focusNode → FocusNode?
-
Optional focus node; the group supplies one when null.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget?
-
Leading / only icon when unselected.
final
- isIconOnly → bool
-
Whether this action has an icon and no label.
no setter
- isSelected → bool?
-
Uncontrolled selection flag when the group has no selection callbacks.
final
- label → Widget?
-
Label when unselected.
final
- minWidth → double?
-
Resting minimum main-axis extent. Content may grow beyond this.
final
-
onFocusChange
→ ValueChanged<
bool> ? -
Called when focus enters or leaves this action.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedIcon → Widget?
-
Icon shown when this action is selected; falls back to icon.
final
- selectedLabel → Widget?
-
Label when selected; falls back to label.
final
- semanticLabel → String?
-
Accessibility label when the visual child is not self-describing.
final
- tooltip → String?
-
Optional tooltip for this action.
final
- width → double?
-
Fixed main-axis extent when non-null.
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