setCursorRow method
Move the active cursor to the given row.
Implementation
Future<void> setCursorRow(int row) async {
int targetCol;
try {
targetCol = (await VolvoxGridService.GetSelection(_getSelectionRequest))
.activeCol;
} catch (_) {
targetCol = 0;
}
await VolvoxGridService.Select(
_buildSingleRangeSelectRequest(row, targetCol,
rowEnd: row, colEnd: targetCol),
);
notifyListeners();
}