detachInput method
void
detachInput()
Detaches and closes the IME connection.
Implementation
void detachInput() {
commitIfComposing();
_connectionRetryTimer?.cancel();
_connectionRetryTimer = null;
_connectionRetryCount = 0;
_structuralChangeTimer?.cancel();
_structuralChangeTimer = null;
_structuralChangeInProgress = false;
_connection?.close();
_connection = null;
_document = null;
_resetComposition();
_lastSyncedFragmentId = '';
_lastSyncedText = '';
_prevSelectionKey = '';
}