YaruSwitch constructor
const
YaruSwitch({
- Key? key,
- required bool value,
- required ValueChanged<
bool> ? onChanged, - Color? selectedColor,
- Color? thumbColor,
- FocusNode? focusNode,
- bool autofocus = false,
- MouseCursor? mouseCursor,
- MaterialStatesController? statesController,
Implementation
const YaruSwitch({
super.key,
required this.value,
required this.onChanged,
this.selectedColor,
this.thumbColor,
this.focusNode,
this.autofocus = false,
this.mouseCursor,
this.statesController,
});