SeniorSquareButtonsMenuItemData class
Constructors
- SeniorSquareButtonsMenuItemData({Key? key, bool disabled = false, required IconData icon, required dynamic onTap(), required String text, required SeniorSquareButtonsMenuItemType type, bool withElevation = false})
- Information for creating a Senior Square Buttons Menu component button.
- SeniorSquareButtonsMenuItemData.checkbox({Key? key, bool disabled = false, required IconData icon, required bool isChecked, required dynamic onCheck(bool?), required dynamic onTap(), required String text, required SeniorSquareButtonsMenuItemType type, bool withElevation = false})
- Information for creating a checkboxed button from the SeniorSquareButtonsMenu component.
Properties
- disabled → bool
-
Defines if the button will be disabled.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData
-
The button icon.
final
- isChecked ↔ bool
-
Defines whether the button's checkbox will be checked.
latefinal
- key → Key?
-
Key for the button.
final
- onCheck ↔ dynamic Function(bool?)
-
Callback function executed when checkbox is checked or unchecked.
latefinal
- onTap → dynamic Function()
-
Callback function executed when the button is tapped.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
The button text.
final
- type → SeniorSquareButtonsMenuItemType
-
The button type.
It can be SeniorSquareButtonsMenuItemType.emphasis SeniorSquareButtonsMenuItemType.emphasisNegative,
SeniorSquareButtonsMenuItemType.neutral, SeniorSquareButtonsMenuItemType.neutralNegative,
SeniorSquareButtonsMenuItemType.ghost and SeniorSquareButtonsMenuItemType.ghostNegative.
final
- withCheckbox ↔ bool
-
latefinal
- withElevation → bool
-
Defines whether the button will have elevation.
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