YaruSwitch constructor

const YaruSwitch({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool>? onChanged,
  4. Color? selectedColor,
  5. Color? thumbColor,
  6. FocusNode? focusNode,
  7. bool autofocus = false,
  8. MouseCursor? mouseCursor,
  9. 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,
});