FormItemCheckbox constructor
FormItemCheckbox({
- TextEditingController? controller,
- Widget? leading,
- bool dense = false,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 4.5),
- EdgeInsetsGeometry margin = const EdgeInsets.symmetric(vertical: 10),
- FormItemCheckboxType type = FormItemCheckboxType.form,
- void onChanged(
- bool? value
- Color? backgroundColor,
- Color? borderColor,
- Color? color,
- Color? activeColor,
- Color? checkColor,
- String? hintText,
- String? errorText,
- String? labelText,
- Key? key,
- void onSaved(
- bool? value
- String? validator(
- bool? value
- bool initialValue = false,
- bool enabled = true,
Implementation
FormItemCheckbox(
{this.controller,
this.leading,
this.dense = false,
this.padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 4.5),
this.margin = const EdgeInsets.symmetric(vertical: 10),
this.type = FormItemCheckboxType.form,
this.onChanged,
this.backgroundColor,
this.borderColor,
this.color,
this.activeColor,
this.checkColor,
this.hintText,
this.errorText,
this.labelText,
Key? key,
void Function(bool? value)? onSaved,
String? Function(bool? value)? validator,
bool initialValue = false,
bool enabled = true})
: super(
key: key,
builder: (state) {
return const Empty();
},
onSaved: onSaved,
validator: validator,
initialValue: initialValue,
enabled: enabled);