PlatformSwitch constructor

const PlatformSwitch({
  1. Key? key,
  2. bool value = false,
  3. ValueChanged<bool>? onValueChanged,
  4. Color? activeColor,
  5. DragStartBehavior dragStartBehaviour = DragStartBehavior.start,
  6. Color? activeTrackColor,
  7. Color? inactiveTrackColor,
  8. Color? activeThumbColor,
  9. Color? inactiveThumbColor,
})

Implementation

const PlatformSwitch({
  Key? key,
  this.value = false,
  this.onValueChanged,
  this.activeColor,
  this.dragStartBehaviour = DragStartBehavior.start,
  this.activeTrackColor,
  this.inactiveTrackColor,
  this.activeThumbColor,
  this.inactiveThumbColor,
}) : super(key: key);