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. PlatformBuilder<MaterialSwitchData>? material,
  8. PlatformBuilder<CupertinoSwitchData>? cupertino,
})

Implementation

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