GlassSwitch constructor

const GlassSwitch({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool>? onChanged,
  4. Color? activeColor,
  5. String? semanticLabel,
  6. FocusNode? focusNode,
  7. bool autofocus = false,
})

Creates a switch.

Implementation

const GlassSwitch({
  super.key,
  required this.value,
  required this.onChanged,
  this.activeColor,
  this.semanticLabel,
  this.focusNode,
  this.autofocus = false,
});