ToggleSwitch constructor

const ToggleSwitch({
  1. Key? key,
  2. required bool value,
  3. ValueChanged<bool>? onChanged,
  4. FocusNode? focusNode,
  5. bool autofocus = false,
})

Implementation

const ToggleSwitch({
  Key? key,
  required this.value,
  this.onChanged,
  this.focusNode,
  this.autofocus = false,
}) : super(key: key);