reset method

void reset()

Resets the WriteBatch and dequeues all pending operations.

Implementation

void reset() {
  _operations.clear();
  _commited = false;
}