SeniorSquareButtonsMenuItemData.checkbox constructor

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

Information for creating a checkboxed button from the SeniorSquareButtonsMenu component.

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

Implementation

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