MacosCheckbox constructor

const MacosCheckbox({
  1. Key? key,
  2. required bool? value,
  3. required ValueChanged<bool>? onChanged,
  4. double size = 16.0,
  5. Color? activeColor,
  6. Color disabledColor = CupertinoColors.quaternaryLabel,
  7. Color offBorderColor = CupertinoColors.tertiaryLabel,
  8. String? semanticLabel,
})

Creates a checkbox.

size must be non-negative

Implementation

const MacosCheckbox({
  Key? key,
  required this.value,
  required this.onChanged,
  this.size = 16.0,
  this.activeColor,
  this.disabledColor = CupertinoColors.quaternaryLabel,
  this.offBorderColor = CupertinoColors.tertiaryLabel,
  this.semanticLabel,
})  : assert(size >= 0),
      super(key: key);