onFieldSubmitted<T extends Object> static method

void onFieldSubmitted<T extends Object>(
  1. GlobalKey<State<StatefulWidget>> key

Calls AutocompleteFieldViewBuilder's onFieldSubmitted callback for the RawAutocomplete widget indicated by the given GlobalKey.

This is not typically used unless a custom field is implemented instead of using fieldViewBuilder. In the typical case, the onFieldSubmitted callback is passed via the AutocompleteFieldViewBuilder signature. When not using fieldViewBuilder, the same callback can be called by using this static method.

See also:


static void onFieldSubmitted<T extends Object>(GlobalKey key) {
  final _RawAutocompleteState<T> rawAutocomplete = key.currentState! as _RawAutocompleteState<T>;