connectionClosed method

  1. @override
void connectionClosed()
inherited

Platform notified framework of closed connection.

TextInputClient should cleanup its connection and finalize editing.

Implementation

@override
void connectionClosed() {
  if (hasConnection) {
    _textInputConnection!.connectionClosedReceived();
    _textInputConnection = null;
    _lastKnownRemoteTextEditingValue = null;
    _sentRemoteValues.clear();
  }
}