beginEditState method
Begin editing the given cell and return the resulting edit state.
Implementation
Future<EditState> beginEditState(
int row,
int col, {
EditStartReason reason = EditStartReason.EDIT_START_PROGRAMMATIC,
String? seedText,
int? caretPosition,
bool? formulaMode,
}) async {
final start = EditStart()
..row = row
..col = col
..reason = reason;
if (seedText != null) {
start.seedValue = _editorValueFromText(seedText);
}
if (caretPosition != null) {
start.caretPosition = caretPosition;
}
final state = await VolvoxGridService.Edit(EditCommand()
..gridId = _gridId
..start = start);
notifyListeners();
return state;
}