Checkbox.primary constructor

const Checkbox.primary({
  1. required bool checked,
  2. String? label,
  3. String? description,
  4. CheckboxSize size = CheckboxSize.medium,
  5. bool disabled = false,
  6. void onChanged(
    1. bool
    )?,
  7. Key? key,
})

Primary checkbox

Implementation

const Checkbox.primary({
  required this.checked,
  this.label,
  this.description,
  this.size = CheckboxSize.medium,
  this.disabled = false,
  this.onChanged,
  super.key,
}) : style = CheckboxStyle.primary;