ArcaneCheckbox.warning constructor

const ArcaneCheckbox.warning({
  1. required bool checked,
  2. String? label,
  3. String? description,
  4. ComponentSize size = ComponentSize.md,
  5. bool disabled = false,
  6. void onChanged(
    1. bool
    )?,
  7. void onToggle(
    1. bool
    )?,
  8. Key? key,
})

Implementation

const ArcaneCheckbox.warning({
  required this.checked,
  this.label,
  this.description,
  this.size = ComponentSize.md,
  this.disabled = false,
  void Function(bool)? onChanged,
  void Function(bool)? onToggle,
  super.key,
})  : _onChanged = onChanged ?? onToggle,
      color = ColorVariant.warning;