ControlledToggle constructor

const ControlledToggle({
  1. Key? key,
  2. ToggleController? controller,
  3. bool? initialValue,
  4. ValueChanged<bool>? onChanged,
  5. bool enabled = true,
  6. required Widget child,
  7. ButtonStyle style = const ButtonStyle.ghost(),
})

Implementation

const ControlledToggle({
  super.key,
  this.controller,
  this.initialValue,
  this.onChanged,
  this.enabled = true,
  required this.child,
  this.style = const ButtonStyle.ghost(),
});