commitIfComposing method

void commitIfComposing()

Implementation

void commitIfComposing() {
  if (!state.isComposing) return;
  final text = state.preeditText;
  if (text.isNotEmpty) {
    _commitPreedit(text);
  } else {
    _resetComposition();
  }
  _invalidatePreeditRender();
}