FlutstrapCheckbox constructor
const
FlutstrapCheckbox({
- Key? key,
- required bool? value,
- ValueChanged<
bool?> ? onChanged, - FSCheckboxVariant variant = FSCheckboxVariant.primary,
- FSCheckboxSize size = FSCheckboxSize.md,
- String? label,
- Widget? customLabel,
- bool disabled = false,
- bool inline = false,
- String? semanticLabel,
- bool showValidation = false,
- bool isValid = true,
- String? validationMessage,
- bool tristate = false,
- Color? activeColor,
- Color? checkColor,
- VisualDensity? visualDensity,
- EdgeInsetsGeometry? padding,
Implementation
const FlutstrapCheckbox({
super.key,
required this.value,
this.onChanged,
this.variant = FSCheckboxVariant.primary,
this.size = FSCheckboxSize.md,
this.label,
this.customLabel,
this.disabled = false,
this.inline = false,
this.semanticLabel,
this.showValidation = false,
this.isValid = true,
this.validationMessage,
this.tristate = false,
this.activeColor,
this.checkColor,
this.visualDensity,
this.padding,
});