SeniorSquareButtonsMenuItemData constructor

SeniorSquareButtonsMenuItemData({
  1. Key? key,
  2. bool disabled = false,
  3. required IconData icon,
  4. required dynamic onTap(),
  5. required String text,
  6. required SeniorSquareButtonsMenuItemType type,
  7. bool withElevation = false,
})

Information for creating a Senior Square Buttons Menu component button.

The icon, onTap, text and type parameters are required.

Implementation

SeniorSquareButtonsMenuItemData({
  this.key,
  this.disabled = false,
  required this.icon,
  required this.onTap,
  required this.text,
  required this.type,
  this.withElevation = false,
}) {
  isChecked = false;
  onCheck = (_) {};
  withCheckbox = false;
}