DropdownFormField<T> constructor

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

Implementation

const DropdownFormField({
  Key? key,
  required this.dropdownItemFn,
  required this.displayItemFn,
  required this.findFn,
  this.focusNode,
  this.filterFn,
  this.autoFocus = false,
  this.isProduct = 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);