commitAll method

Future<List<T>> commitAll(
  1. List<RowUpdate<T>> writes
)

Writes several rows as one change, returning them in the order given.

A paste into a range is one user action, so it should be one write: a source that can send a batch in a single request or a single transaction overrides this, and the default walks commit for a source that cannot. Either way the grid refreshes once.

Implementation

Future<List<T>> commitAll(List<RowUpdate<T>> writes) async {
  final out = <T>[];
  for (final write in writes) {
    out.add(await commit(write.original, write.updated));
  }
  return out;
}