setEditPreedit method
Update IME preedit/composition state for the active edit session.
Implementation
Future<EditState> setEditPreedit(
String text, {
int cursor = 0,
bool commit = false,
Int64? sessionId,
Int64? stateVersion,
}) async {
final session = await _prepareSessionCommand(
EditorSessionCommand()
..preeditChanged = (EditorPreeditChanged()
..text = text
..cursor = cursor
..commit = commit),
sessionId: sessionId,
stateVersion: stateVersion,
);
final state = await VolvoxGridService.Edit(EditCommand()
..gridId = _gridId
..session = session);
notifyListeners();
return state;
}