resetEditingState method
void
resetEditingState()
Clears a pending IME composition and resets the platform editing state. Call after input is sent to the terminal from outside the keyboard, such as a mobile extra-keys bar.
This discards whatever the IME was still holding. To keep it, commit it with commitComposing instead.
Implementation
void resetEditingState() {
_customTextEditKey.currentState?.resetEditingState();
}