connectionClosed method Null safety
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;
_finalizeEditing(TextInputAction.done, shouldUnfocus: true);
}
}