connectionClosed method

  1. @override
void connectionClosed()
override

Platform notified framework of closed connection.

TextInputClient should cleanup its connection and finalize editing.

Implementation

@override
void connectionClosed() {
  if (_hasInputConnection) {
    _textInputConnection!.connectionClosedReceived();
    _textInputConnection = null;
    _lastKnownRemoteTextEditingValue = null;
    widget.focusNode.unfocus();
  }
}