PlatformSwitch constructor

const PlatformSwitch({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool> onChanged,
  4. Color? activeColor,
  5. Color? inactiveThumbColor,
  6. Color? inactiveTrackColor,
  7. Color? activeTrackColor,
  8. Color? cupertinoActiveColor,
  9. Color? cupertinoTrackColor,
  10. Color? thumbColor,
})

Implementation

const PlatformSwitch({
  super.key,
  required this.value,
  required this.onChanged,
  this.activeColor,
  this.inactiveThumbColor,
  this.inactiveTrackColor,
  this.activeTrackColor,
  this.cupertinoActiveColor,
  this.cupertinoTrackColor,
  this.thumbColor,
});