ControlledSwitch constructor

const ControlledSwitch({
  1. Key? key,
  2. SwitchController? controller,
  3. bool initialValue = false,
  4. ValueChanged<bool>? onChanged,
  5. bool enabled = true,
  6. Widget? leading,
  7. Widget? trailing,
})

Implementation

const ControlledSwitch({
  super.key,
  this.controller,
  this.initialValue = false,
  this.onChanged,
  this.enabled = true,
  this.leading,
  this.trailing,
});