FbBatch.create constructor

FbBatch.create(
  1. WriteBatch _batch,
  2. FirebaseFirestore _firestore
)

Creates a new FbBatch instance.

Example:

final batch = FbBatch.create(firestore.batch(), firestore);
batch.set('users/123', {'name': 'John'});
await batch.commit();

Implementation

FbBatch.create(this._batch, this._firestore);