MiuixCheckboxPreference constructor
const
MiuixCheckboxPreference({
- Key? key,
- required String title,
- required bool value,
- required ValueChanged<
bool> ? onChanged, - MiuixBasicComponentColors? titleColor,
- String? summary,
- MiuixBasicComponentColors? summaryColor,
- MiuixCheckboxColors? checkboxColors,
- Widget? startAction,
- List<
Widget> ? endActions, - MiuixCheckboxLocation checkboxLocation = MiuixCheckboxLocation.start,
- Widget? bottomAction,
- EdgeInsetsGeometry insideMargin = MiuixBasicComponentDefaults.insideMargin,
- bool holdDownState = false,
- 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,
});