SimpleAutoCompleteTextField constructor

SimpleAutoCompleteTextField({
  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. bool autofocus = false,
  10. Color? cursorColor,
  11. double? cursorWidth,
  12. Radius? cursorRadius,
  13. bool? showCursor,
  14. TextInputType keyboardType = TextInputType.text,
  15. required GlobalKey<AutoCompleteTextFieldState<String>> key,
  16. required List<String> suggestions,
  17. int suggestionsAmount = 5,
  18. bool submitOnSuggestionTap = true,
  19. bool clearOnSubmit = true,
  20. TextInputAction textInputAction = TextInputAction.done,
  21. TextCapitalization textCapitalization = TextCapitalization.sentences,
})

Implementation

SimpleAutoCompleteTextField(
    {TextStyle? style,
    InputDecoration decoration: const InputDecoration(),
    this.onFocusChanged,
    this.textChanged,
    this.textSubmitted,
    this.minLength = 1,
    this.controller,
    this.focusNode,
    this.autofocus = false,
    this.cursorColor,
    this.cursorWidth,
    this.cursorRadius,
    this.showCursor,
    TextInputType keyboardType: TextInputType.text,
    required GlobalKey<AutoCompleteTextFieldState<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,
          cursorColor: cursorColor,
          cursorWidth: cursorWidth,
          cursorRadius: cursorRadius,
          showCursor: showCursor,
          suggestionsAmount: suggestionsAmount,
          submitOnSuggestionTap: submitOnSuggestionTap,
          clearOnSubmit: clearOnSubmit,
          textInputAction: textInputAction,
          textCapitalization: textCapitalization);