batch method

Future<void> batch(
  1. void executor(
    1. BatchTable batch
    )
)

Implementation

Future<void> batch(void Function(BatchTable batch) executor) {
  return database.batch((batch) {
    executor(batch.withTable(table));
  });
}