Field.radio constructor
Field.radio(
- String key, {
- String? label,
- dynamic value,
- FormValidator? validator,
- bool autofocus = false,
- String? dummyData,
- Widget? header,
- bool? readOnly,
- required FormCollection options,
- FieldStyleRadio? style,
- dynamic onChanged(
- 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);
}