MiuixSwitchPreference constructor

const MiuixSwitchPreference({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool> onChanged,
  4. required String title,
  5. MiuixBasicComponentColors? titleColor,
  6. String? summary,
  7. MiuixBasicComponentColors? summaryColor,
  8. Widget? startAction,
  9. List<Widget>? endActions,
  10. Widget? bottomAction,
  11. MiuixSwitchColors? switchColors,
  12. EdgeInsetsGeometry insideMargin = MiuixBasicComponentDefaults.insideMargin,
  13. bool holdDownState = false,
  14. 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,
});