AltButton class
AltButton - Represents a configurable button within the control button component.
Example Usage:
ControlButton(
name: 'Mute',
icon: Icons.mic_off,
alternateIcon: Icons.mic,
onPress: () => print('Muted'),
defaultBackgroundColor: Colors.grey,
pressedBackgroundColor: Colors.blue,
active: true,
activeColor: Colors.green,
inActiveColor: Colors.red,
show: true,
disabled: false,
);
Constructors
Properties
- active → bool
-
Indicates whether the button is in an active state.
final
- activeColor → Color?
-
The color of the icon when the button is active.
final
- alternateIcon → IconData?
-
The alternate icon displayed when the button is active.
final
- customComponent → Widget?
-
A custom widget to replace the default icon and text layout.
final
- defaultBackgroundColor → Color?
-
The default background color of the button.
final
- disabled → bool
-
If true, the button is disabled and non-interactive.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
The primary icon of the button.
final
- inActiveColor → Color?
-
The color of the icon when the button is inactive.
final
- name → String?
-
The display name of the button.
final
- onPress → VoidCallback?
-
The callback function triggered when the button is pressed.
final
- pressedBackgroundColor → Color?
-
The background color of the button when pressed or active.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- show → bool
-
Indicates whether the button should be displayed.
final
- textColor → Color?
-
The color of the text label.
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