performAction method

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

Requests that this client perform the given action.

Implementation

@override
void performAction(TextInputAction action) {
  switch (action) {
    case TextInputAction.newline:
      // If this is a multiline EditableText, do nothing for a "newline"
      // action; The newline is already inserted. Otherwise, finalize
      // editing.
      if (!isMultiline)
        blur();
      break;
    case TextInputAction.done:
      blur();
      break;
    case TextInputAction.none:
      // TODO: Handle this case.
      break;
    case TextInputAction.unspecified:
      // TODO: Handle this case.
      break;
    case TextInputAction.go:
      // TODO: Handle this case.
      break;
    case TextInputAction.search:
      // TODO: Handle this case.
      break;
    case TextInputAction.send:
      // TODO: Handle this case.
      break;
    case TextInputAction.next:
      // TODO: Handle this case.
      break;
    case TextInputAction.previous:
      // TODO: Handle this case.
      break;
    case TextInputAction.continueAction:
      // TODO: Handle this case.
      break;
    case TextInputAction.join:
      // TODO: Handle this case.
      break;
    case TextInputAction.route:
      // TODO: Handle this case.
      break;
    case TextInputAction.emergencyCall:
      // TODO: Handle this case.
      break;
  }
}