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