SimpleTextFieldAutoComplete constructor

SimpleTextFieldAutoComplete({
  1. TextStyle? style,
  2. InputDecoration decoration = const InputDecoration(),
  3. ValueSetter<bool>? onFocusChanged,
  4. StringCallback? textChanged,
  5. StringCallback? textSubmitted,
  6. int minLength = 1,
  7. TextEditingController? controller,
  8. FocusNode? focusNode,
  9. TextInputType keyboardType = TextInputType.text,
  10. required GlobalKey<TextFieldAutoCompleteState<String>> key,
  11. required List<String> suggestions,
  12. int suggestionsAmount = 5,
  13. bool submitOnSuggestionTap = true,
  14. bool clearOnSubmit = true,
  15. TextInputAction textInputAction = TextInputAction.done,
  16. TextCapitalization textCapitalization = TextCapitalization.sentences,
})

Implementation

SimpleTextFieldAutoComplete(
    {TextStyle? style,
      InputDecoration decoration: const InputDecoration(),
      this.onFocusChanged,
      this.textChanged,
      this.textSubmitted,
      this.minLength = 1,
      this.controller,
      this.focusNode,
      TextInputType keyboardType: TextInputType.text,
      required GlobalKey<TextFieldAutoCompleteState<String>> key,
      required List<String> suggestions,
      int suggestionsAmount: 5,
      bool submitOnSuggestionTap: true,
      bool clearOnSubmit: true,
      TextInputAction textInputAction: TextInputAction.done,
      TextCapitalization textCapitalization: TextCapitalization.sentences})
    : super(
    style: style,
    decoration: decoration,
    textChanged: textChanged,
    textSubmitted: textSubmitted,
    itemSubmitted: textSubmitted,
    keyboardType: keyboardType,
    key: key,
    suggestions: suggestions,
    itemBuilder: null,
    itemSorter: null,
    itemFilter: null,
    suggestionsAmount: suggestionsAmount,
    submitOnSuggestionTap: submitOnSuggestionTap,
    clearOnSubmit: clearOnSubmit,
    textInputAction: textInputAction,
    textCapitalization: textCapitalization);