MacosSwitch constructor
const
MacosSwitch({
- Key? key,
- required bool value,
- required ValueChanged<
bool> ? onChanged, - DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- Color? activeColor,
- Color? trackColor,
- String? semanticLabel,
Implementation
const MacosSwitch({
Key? key,
required this.value,
required this.onChanged,
this.dragStartBehavior = DragStartBehavior.start,
this.activeColor,
this.trackColor,
this.semanticLabel,
}) : super(key: key);