ShadCheckbox constructor
const
ShadCheckbox({
- Key? key,
- required bool value,
- bool enabled = true,
- ValueChanged<
bool> ? onChanged, - FocusNode? focusNode,
- ShadDecoration? decoration,
- double? size,
- Duration? duration,
- Widget? icon,
- Color? color,
- Color? uncheckedColor,
- Widget? label,
- Widget? sublabel,
- EdgeInsetsGeometry? padding,
- TextDirection? direction,
- CrossAxisAlignment? crossAxisAlignment,
- 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,
});