Field.checkbox constructor
Field.checkbox(
- String key, {
- String? label,
- dynamic value,
- FormValidator? validator,
- bool autofocus = false,
- String? dummyData,
- Widget? header,
- TextStyle? titleStyle,
- bool? readOnly,
- FieldStyleCheckbox? style,
- dynamic onChanged(
- dynamic value
Field.checkbox is a constructor that helps in managing textArea fields
Implementation
Field.checkbox(
this.key, {
this.label,
dynamic value,
this.validator,
this.autofocus = false,
this.dummyData,
this.header,
this.footer,
this.titleStyle,
this.hidden = false,
this.readOnly,
FieldStyleCheckbox? style,
Function(dynamic value)? onChanged,
}) : _value = value,
this.style = style ?? FieldStyleCheckbox() {
setOnChanged(onChanged);
widget = NyFormCheckbox.fromField(this);
}