BasicSwitch constructor

const BasicSwitch({
  1. Key? key,
  2. required bool checked,
  3. ValueChanged<bool>? onCheckedChange,
  4. bool enabled = true,
  5. bool loading = false,
})

Implementation

const BasicSwitch({
  super.key,
  required this.checked,
  this.onCheckedChange,
  this.enabled = true,
  this.loading = false,
});