Field.checkbox constructor

Field.checkbox(
  1. String key, {
  2. String? label,
  3. dynamic value,
  4. FormValidator? validator,
  5. bool autofocus = false,
  6. String? dummyData,
  7. Widget? header,
  8. Widget? footer,
  9. TextStyle? titleStyle,
  10. bool? hidden = false,
  11. bool? readOnly,
  12. FieldStyleCheckbox? style,
  13. dynamic onChanged(
    1. 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);
}