Switch constructor

const Switch({
  1. Key? key,
  2. bool autoFocus = false,
  3. Widget? checkedChildren,
  4. SwitchController? controller,
  5. bool disabled = false,
  6. bool loading = false,
  7. Size size = Size.medium,
  8. Widget? uncheckedChildren,
  9. void onChange(
    1. bool checked
    )?,
  10. void onClick(
    1. bool checked
    )?,
})

Implementation

const Switch({
  Key? key,
  this.autoFocus = false,
  this.checkedChildren,
  this.controller,
  this.disabled = false,
  this.loading = false,
  this.size = Size.medium,
  this.uncheckedChildren,
  this.onChange,
  this.onClick,
}) : super(key: key);