SimpleAutoCompleteTextField constructor
SimpleAutoCompleteTextField({
- TextStyle? style,
- InputDecoration decoration = const InputDecoration(),
- ValueSetter<
bool> ? onFocusChanged, - StringCallback? textChanged,
- StringCallback? textSubmitted,
- int minLength = 1,
- TextEditingController? controller,
- FocusNode? focusNode,
- TextInputType keyboardType = TextInputType.text,
- required GlobalKey<
AutoCompleteTextFieldState< key,String> > - required List<
String> suggestions, - int suggestionsAmount = 5,
- bool submitOnSuggestionTap = true,
- bool clearOnSubmit = true,
- TextInputAction textInputAction = TextInputAction.done,
- 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,
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,
suggestionsAmount: suggestionsAmount,
submitOnSuggestionTap: submitOnSuggestionTap,
clearOnSubmit: clearOnSubmit,
textInputAction: textInputAction,
textCapitalization: textCapitalization);