PlatformSwitch constructor

PlatformSwitch({
  1. Key? key,
  2. Key? widgetKey,
  3. required bool value,
  4. required void onChanged(
    1. bool
    )?,
  5. DragStartBehavior? dragStartBehavior,
  6. Color? activeColor,
  7. bool? autofocus,
  8. FocusNode? focusNode,
  9. ValueChanged<bool>? onFocusChange,
  10. PlatformBuilder<MaterialSwitchData>? material,
  11. PlatformBuilder<CupertinoSwitchData>? cupertino,
})

Implementation

PlatformSwitch({
  super.key,
  this.widgetKey,
  required this.value,
  required this.onChanged,
  this.dragStartBehavior,
  this.activeColor,
  this.autofocus,
  this.focusNode,
  this.onFocusChange,
  this.material,
  this.cupertino,
});