ShadCheckbox constructor

const ShadCheckbox({
  1. Key? key,
  2. required bool value,
  3. bool enabled = true,
  4. ValueChanged<bool>? onChanged,
  5. FocusNode? focusNode,
  6. ShadDecoration? decoration,
  7. double? size,
  8. Duration? duration,
  9. Widget? icon,
  10. Color? color,
  11. Color? uncheckedColor,
  12. Widget? label,
  13. Widget? sublabel,
  14. EdgeInsetsGeometry? padding,
  15. TextDirection? direction,
  16. CrossAxisAlignment? crossAxisAlignment,
  17. EdgeInsetsGeometry? checkboxPadding,
})

Creates a checkbox widget with the specified state and options.

Implementation

const ShadCheckbox({
  super.key,
  required this.value,
  this.enabled = true,
  this.onChanged,
  this.focusNode,
  this.decoration,
  this.size,
  this.duration,
  this.icon,
  this.color,
  this.uncheckedColor,
  this.label,
  this.sublabel,
  this.padding,
  this.direction,
  this.crossAxisAlignment,
  this.checkboxPadding,
});