connectionClosedReceived method Null safety

void connectionClosedReceived()

Platform sent a notification informing the connection is closed.

TextInputConnection should clean current client connection.

Implementation

void connectionClosedReceived() {
  TextInput._instance._currentConnection = null;
  assert(!attached);
}