ToggleButton constructor

const ToggleButton({
  1. required bool value,
  2. void onChanged(
    1. bool value
    )?,
  3. String? label,
  4. Component? icon,
  5. ButtonSize size = ButtonSize.medium,
  6. bool disabled = false,
  7. Key? key,
})

Implementation

const ToggleButton({
  required this.value,
  this.onChanged,
  this.label,
  this.icon,
  this.size = ButtonSize.medium,
  this.disabled = false,
  super.key,
});