PlexFormField.dropDown constructor
PlexFormField.dropDown({})
Implementation
PlexFormField.dropDown({
required this.title,
required this.onChange,
this.editable = true,
this.itemAsString,
this.items,
this.itemsAsync,
this.onSearch,
this.dropdownWidget,
this.dropdownLeadingWidget,
this.initialValue,
}) {
if (items == null && itemsAsync == null) {
throw Exception(
"Items must be initialized or async item function must be initialized");
}
itemAsString ??= (item) => item.toString();
fieldType = TYPE_DROPDOWN;
}