batch method

void batch(
  1. void action()
)

Implementation

void batch(void Function() action) {
  beginBatch();
  try {
    action();
  } finally {
    endBatch();
  }
}