Field.radio constructor

Field.radio(
  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. bool? hidden = false,
  10. bool? readOnly,
  11. required FormCollection options,
  12. FieldStyleRadio? style,
  13. dynamic onChanged(
    1. dynamic value
    )?,
})

Field.radio is a constructor that helps in managing radio fields

Implementation

Field.radio(
  this.key, {
  this.label,
  dynamic value,
  this.validator,
  this.autofocus = false,
  this.dummyData,
  this.header,
  this.footer,
  this.hidden = false,
  this.readOnly,
  required FormCollection options,
  FieldStyleRadio? style,
  Function(dynamic value)? onChanged,
}) : _value = value,
     this.style = style {
  setOnChanged(onChanged);
  widget = NyFormRadio.fromField(this, options: options);
}