loadTable method

Future<void> loadTable(
  1. int rows,
  2. int cols,
  3. List<CellValue> values, {
  4. bool atomic = false,
})

Load a row-major typed matrix in one RPC.

values should be rows * cols long in row-major order.

Implementation

Future<void> loadTable(
  int rows,
  int cols,
  List<CellValue> values, {
  bool atomic = false,
}) async {
  await VolvoxGridService.LoadTable(LoadTableRequest()
    ..gridId = _gridId
    ..rows = rows
    ..cols = cols
    ..values.addAll(values)
    ..atomic = atomic);
  notifyListeners();
}