DropdownFormField<T> constructor

DropdownFormField<T>({
  1. Key? key,
  2. required ListTile dropdownItemFn(
    1. T item,
    2. int position,
    3. bool focused,
    4. bool selected,
    5. dynamic onTap(),
    ),
  3. required Widget displayItemFn(
    1. T? item
    ),
  4. required Future<List<T>> findFn(
    1. String str
    ),
  5. bool filterFn(
    1. T item,
    2. String str
    )?,
  6. bool autoFocus = false,
  7. DropdownEditingController<T>? controller,
  8. String? validator(
    1. T?
    )?,
  9. InputDecoration? decoration,
  10. Color? dropdownColor,
  11. void onChanged(
    1. T item
    )?,
  12. void onSaved(
    1. T?
    )?,
  13. double? dropdownHeight,
  14. TextStyle? searchTextStyle,
  15. String emptyText = "No matching found!",
  16. String emptyActionText = 'Create new',
  17. Future<void> onEmptyActionPressed()?,
  18. bool selectedFn(
    1. T? item1,
    2. 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);