saveAll method

Future<List<RowData?>> saveAll(
  1. List<M> items, {
  2. SQLExecutor? executor,
})

Implementation

Future<List<RowData?>> saveAll(List<M> items, {SQLExecutor? executor}) async {
  if (items.isEmpty) return const [];
  List<RowData?> ls = [];
  for (M item in items) {
    ls << await save(item, executor: executor);
  }
  return ls;
}