GetFilterableTextField<T extends Comparable> constructor

const GetFilterableTextField<T extends Comparable>({
  1. required GlobalKey<GetFilterableTextFieldState<T>> key,
  2. required OnValue<T?> itemSubmitted,
  3. List<T>? items,
  4. GetFilterItemBuilder<T>? itemBuilder,
  5. Comparator<T>? itemSorter,
  6. Filter<T>? itemFilter,
  7. List<TextInputFormatter>? inputFormatters,
  8. TextStyle? style,
  9. String? label,
  10. String? helper,
  11. String? error,
  12. OnString? textChanged,
  13. OnString? textSubmitted,
  14. ValueSetter<bool>? onFocusChanged,
  15. TextInputType keyboardType = TextInputType.text,
  16. int itemCount = 5,
  17. int visibleCount = 5,
  18. double itemHeight = 58,
  19. bool submitOnItemTap = true,
  20. bool clearOnSubmit = false,
  21. bool showAllOnFocus = false,
  22. bool disableFiltering = false,
  23. bool onlyAcceptItem = true,
  24. TextInputAction textInputAction = TextInputAction.done,
  25. TextCapitalization textCapitalization = TextCapitalization.sentences,
  26. int minLength = 0,
  27. bool readOnly = false,
  28. bool validateEmpty = false,
  29. TextEditingController? controller,
  30. dynamic initialValue,
  31. FocusNode? focusNode,
  32. FocusNode? nextFocusNode,
  33. Widget? suffix,
})

Implementation

const GetFilterableTextField({
  required GlobalKey<GetFilterableTextFieldState<T>> key,
  required this.itemSubmitted,
  this.items,
  this.itemBuilder,
  this.itemSorter,
  this.itemFilter,
  this.inputFormatters,
  this.style,
  this.label,
  this.helper,
  this.error,
  this.textChanged,
  this.textSubmitted,
  this.onFocusChanged,
  this.keyboardType = TextInputType.text,
  this.itemCount = 5,
  this.visibleCount = 5,
  this.itemHeight = 58,
  this.submitOnItemTap = true,
  this.clearOnSubmit = false,
  this.showAllOnFocus = false,
  this.disableFiltering = false,
  this.onlyAcceptItem = true,
  this.textInputAction = TextInputAction.done,
  this.textCapitalization = TextCapitalization.sentences,
  this.minLength = 0,
  this.readOnly = false,
  this.validateEmpty = false,
  this.controller,
  this.initialValue,
  this.focusNode,
  this.nextFocusNode,
  this.suffix,
}) : super(key: key);