Switch constructor

const Switch({
  1. Key? key,
  2. SwitchStyle? style,
  3. String? tooltip,
  4. ValueChanged<bool>? onChanged,
  5. bool selected = false,
  6. bool indeterminate = false,
  7. bool disabled = false,
  8. bool autofocus = false,
  9. FocusNode? focusNode,
  10. SwitchEventController? eventsController,
  11. Curve? curve,
  12. Duration? duration,
})

Implementation

const Switch({
  Key? key,
  this.style,
  this.tooltip,
  this.onChanged,
  this.selected = false,
  this.indeterminate = false,
  this.disabled = false,
  this.autofocus = false,
  this.focusNode,
  this.eventsController,
  this.curve,
  this.duration,
}) : super(key: key);