MenuItemCheckBoxWidget constructor

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

Implementation

const MenuItemCheckBoxWidget({
  super.key,
  required super.theme,
  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),
  super.spacing = const SizedBox(width: 12.0),
  this.onChanged,
  this.enable = false,
});