MiuixCheckboxPreference constructor

const MiuixCheckboxPreference({
  1. Key? key,
  2. required String title,
  3. required bool value,
  4. required ValueChanged<bool>? onChanged,
  5. MiuixBasicComponentColors? titleColor,
  6. String? summary,
  7. MiuixBasicComponentColors? summaryColor,
  8. MiuixCheckboxColors? checkboxColors,
  9. Widget? startAction,
  10. List<Widget>? endActions,
  11. MiuixCheckboxLocation checkboxLocation = MiuixCheckboxLocation.start,
  12. Widget? bottomAction,
  13. EdgeInsetsGeometry insideMargin = MiuixBasicComponentDefaults.insideMargin,
  14. bool holdDownState = false,
  15. bool enabled = true,
})

Implementation

const MiuixCheckboxPreference({
  super.key,
  required this.title,
  required this.value,
  required this.onChanged,
  this.titleColor,
  this.summary,
  this.summaryColor,
  this.checkboxColors,
  this.startAction,
  this.endActions,
  this.checkboxLocation = MiuixCheckboxLocation.start,
  this.bottomAction,
  this.insideMargin = MiuixBasicComponentDefaults.insideMargin,
  this.holdDownState = false,
  this.enabled = true,
});