performAction method

  1. @override
void performAction(
  1. TextInputAction action
)
override

Requests that this client perform the given action.

Implementation

@override
void performAction(TextInputAction action) {
  final doc = _document;
  if (doc == null) return;
  if (action == TextInputAction.newline ||
      action == TextInputAction.done ||
      action == TextInputAction.go ||
      action == TextInputAction.send) {
    commitIfComposing();
    executeHandleEnter(doc);
  }
}