MiuixSwitchPreference constructor
const
MiuixSwitchPreference({
- Key? key,
- required bool value,
- required ValueChanged<
bool> onChanged, - required String title,
- MiuixBasicComponentColors? titleColor,
- String? summary,
- MiuixBasicComponentColors? summaryColor,
- Widget? startAction,
- List<
Widget> ? endActions, - Widget? bottomAction,
- MiuixSwitchColors? switchColors,
- EdgeInsetsGeometry insideMargin = MiuixBasicComponentDefaults.insideMargin,
- bool holdDownState = false,
- bool enabled = true,
Implementation
const MiuixSwitchPreference({
super.key,
required this.value,
required this.onChanged,
required this.title,
this.titleColor,
this.summary,
this.summaryColor,
this.startAction,
this.endActions,
this.bottomAction,
this.switchColors,
this.insideMargin = MiuixBasicComponentDefaults.insideMargin,
this.holdDownState = false,
this.enabled = true,
});