Switcher constructor

const Switcher({
  1. Key? key,
  2. required bool value,
  3. Duration? duration,
  4. Color? enabledColor,
  5. Color? disabledColor,
  6. Color? circleColor,
  7. ValueChanged<bool>? onChanged,
  8. bool disabled = false,
})

Implementation

const Switcher({
  Key? key,
  required this.value,
  this.duration,
  this.enabledColor,
  this.disabledColor,
  this.circleColor,
  this.onChanged,
  this.disabled = false,
}) : super(key: key);