DropdownFormField<T> constructor
DropdownFormField<T> ({
- Key? key,
- required ListTile dropdownItemFn(),
- required Widget displayItemFn(
- T? item
- required Future<
List< findFn(T> >- String str
- bool filterFn(
- T item,
- String str
- bool autoFocus = false,
- DropdownEditingController<
T> ? controller, - String? validator(
- T?
- InputDecoration? decoration,
- Color? dropdownColor,
- void onChanged(
- T item
- void onSaved(
- T?
- double? dropdownHeight,
- TextStyle? searchTextStyle,
- String emptyText = "No matching found!",
- String emptyActionText = 'Create new',
- Future<
void> onEmptyActionPressed()?, - bool selectedFn(
- T? item1,
- T? item2
Implementation
DropdownFormField({
Key? key,
required this.dropdownItemFn,
required this.displayItemFn,
required this.findFn,
this.filterFn,
this.autoFocus = false,
this.controller,
this.validator,
this.decoration,
this.dropdownColor,
this.onChanged,
this.onSaved,
this.dropdownHeight,
this.searchTextStyle,
this.emptyText = "No matching found!",
this.emptyActionText = 'Create new',
this.onEmptyActionPressed,
this.selectedFn,
}) : super(key: key);