ThemedSwitch constructor

const ThemedSwitch({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool>? onChanged,
  4. ThemeGroupType type = ThemeGroupType.MOM,
  5. Color? activeTrackColor,
  6. Color? inactiveThumbColor,
  7. Color? inactiveTrackColor,
  8. ImageProvider<Object>? activeThumbImage,
  9. ImageErrorListener? onActiveThumbImageError,
  10. ImageProvider<Object>? inactiveThumbImage,
  11. ImageErrorListener? onInactiveThumbImageError,
  12. MaterialTapTargetSize? materialTapTargetSize,
  13. DragStartBehavior? dragStartBehavior,
  14. MouseCursor? mouseCursor,
  15. Color? focusColor,
  16. Color? hoverColor,
  17. FocusNode? focusNode,
  18. bool? autofocus,
})

Implementation

const ThemedSwitch({
  super.key,
  required this.value,
  required this.onChanged,
  this.type = ThemeGroupType.MOM,
  //this.activeColor,
  this.activeTrackColor,
  this.inactiveThumbColor,
  this.inactiveTrackColor,
  this.activeThumbImage,
  this.onActiveThumbImageError,
  this.inactiveThumbImage,
  this.onInactiveThumbImageError,
  this.materialTapTargetSize,
  this.dragStartBehavior,
  this.mouseCursor,
  this.focusColor,
  this.hoverColor,
  this.focusNode,
  this.autofocus});