PlatformSwitch constructor
const
PlatformSwitch({
- Key? key,
- bool value = false,
- ValueChanged<
bool> ? onValueChanged, - Color? activeColor,
- DragStartBehavior dragStartBehaviour = DragStartBehavior.start,
- Color? activeTrackColor,
- Color? inactiveTrackColor,
- Color? activeThumbColor,
- 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);