Field.picker constructor

Field.picker(
  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. required FormCollection options,
  13. FieldStylePicker? style,
  14. dynamic onChanged(
    1. dynamic value
    )?,
})

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

Implementation

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