SearchDropdownFormField<T> constructor
const
SearchDropdownFormField<T> ({
- Key? key,
- required FormGroup form,
- required ListTile dropdownItemFn(),
- required Widget displayItemFn(
- T? item
- required Future<
List< findFn(T> >- String str
- bool filterFn(
- T item,
- String str
- bool autoFocus = false,
- SearchDropdownEditingController<
T> ? controller, - InputDecoration? decoration,
- Color? dropdownColor,
- void onChanged(
- T item
- void onSaved(
- T?
- double? dropdownHeight,
- TextStyle? searchTextStyle,
- Color? cursorColor,
- String emptyText = "No matching found!",
- String emptyActionText = 'Create new',
- Future<
void> onEmptyActionPressed(- String value
- Widget? dropdownItemSeparator,
- bool selectedFn(
- T? item1,
- T? item2
- void onFieldTap()?,
- required String formControlName,
- ShowErrorsFunction<
T> ? showErrors, - bool enabled = true,
Implementation
const SearchDropdownFormField({
Key? key,
required this.form,
required this.dropdownItemFn,
required this.displayItemFn,
required this.findFn,
this.filterFn,
this.autoFocus = false,
this.controller,
this.decoration,
this.dropdownColor,
this.onChanged,
this.onSaved,
this.dropdownHeight,
this.searchTextStyle,
this.cursorColor,
this.emptyText = "No matching found!",
this.emptyActionText = 'Create new',
this.onEmptyActionPressed,
this.dropdownItemSeparator,
this.selectedFn,
this.onFieldTap,
required this.formControlName,
this.showErrors,
this.enabled = true,
}) : super(key: key);