GetFilterableTextField<T extends Comparable> constructor
const
GetFilterableTextField<T extends Comparable> ({
- required GlobalKey<
GetFilterableTextFieldState< key,T> > - required OnValue<
T?> itemSubmitted, - List<
T> ? items, - GetFilterItemBuilder<
T> ? itemBuilder, - Comparator<
T> ? itemSorter, - Filter<
T> ? itemFilter, - List<
TextInputFormatter> ? inputFormatters, - TextStyle? style,
- String? label,
- String? helper,
- String? error,
- OnString? textChanged,
- OnString? textSubmitted,
- ValueSetter<
bool> ? onFocusChanged, - TextInputType keyboardType = TextInputType.text,
- int itemCount = 5,
- int visibleCount = 5,
- double itemHeight = 58,
- bool submitOnItemTap = true,
- bool clearOnSubmit = false,
- bool showAllOnFocus = false,
- bool disableFiltering = false,
- bool onlyAcceptItem = true,
- TextInputAction textInputAction = TextInputAction.done,
- TextCapitalization textCapitalization = TextCapitalization.sentences,
- int minLength = 0,
- bool readOnly = false,
- bool validateEmpty = false,
- TextEditingController? controller,
- dynamic initialValue,
- FocusNode? focusNode,
- FocusNode? nextFocusNode,
- 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);