MenuItemCheckBoxWidget constructor

const MenuItemCheckBoxWidget({
  1. Key? key,
  2. required AppTheme theme,
  3. bool enable = true,
  4. IconData icon = Icons.settings,
  5. required String text,
  6. required String description,
  7. double leadingIconSize = 24,
  8. double trailingIconSize = 20,
  9. double nameFontSize = 16,
  10. double descriptionFontSize = 14,
  11. EdgeInsets padding = const EdgeInsets.symmetric(vertical: 8, horizontal: 8),
  12. SizedBox spacing = const SizedBox(width: 12.0),
  13. void onChanged(
    1. bool
    )?,
  14. bool value = false,
})

Implementation

const MenuItemCheckBoxWidget({
  super.key,
  required super.theme,
  super.enable,
  super.icon = Icons.settings,
  required super.text,
  required super.description,
  super.leadingIconSize = 24,
  super.trailingIconSize = 20,
  super.nameFontSize = 16,
  super.descriptionFontSize = 14,
  super.padding = const EdgeInsets.symmetric(vertical: 8, horizontal: 8),
  super.spacing = const SizedBox(width: 12.0),
  this.onChanged,
  this.value = false,
});