rollback method

void rollback()

Implementation

void rollback() {
  _batch = NimbostratusWriteBatch(batch: _firestore.batch());
  // Rollback all optimistic snaps in the reverse order they were applied.
  for (final optimisticSnap in _batchOpimisticSnapshots.reversed) {
    _documents[optimisticSnap.reference.path]!.rollback(optimisticSnap);
  }
}