ThemedSwitch constructor
const
ThemedSwitch({
- Key? key,
- required bool value,
- required ValueChanged<
bool> ? onChanged, - ThemeGroupType type = ThemeGroupType.MOM,
- Color? activeTrackColor,
- Color? inactiveThumbColor,
- Color? inactiveTrackColor,
- ImageProvider<
Object> ? activeThumbImage, - ImageErrorListener? onActiveThumbImageError,
- ImageProvider<
Object> ? inactiveThumbImage, - ImageErrorListener? onInactiveThumbImageError,
- MaterialTapTargetSize? materialTapTargetSize,
- DragStartBehavior? dragStartBehavior,
- MouseCursor? mouseCursor,
- Color? focusColor,
- Color? hoverColor,
- FocusNode? focusNode,
- 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});