performAction method
Requests that this client perform the given action.
Implementation
@override
void performAction(TextInputAction action) {
switch (action) {
case TextInputAction.done:
case TextInputAction.go:
case TextInputAction.send:
case TextInputAction.search:
if (_suggestions?.isNotEmpty ?? false) {
selectSuggestion(_suggestions!.first as T);
} else {
_effectiveFocusNode.unfocus();
}
break;
default:
_effectiveFocusNode.unfocus();
break;
}
}