MacosSwitch constructor

const MacosSwitch({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool>? onChanged,
  4. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  5. Color? activeColor,
  6. Color? trackColor,
  7. 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);