WriteBatch class

A WriteBatch is a series of write operations to be performed as one unit.

Operations done on a WriteBatch do not take effect until you commit().

Once committed, no further operations can be performed on the WriteBatch, nor can it be committed again.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

commit() Future<void>
Commits all of the writes in this write batch as a single atomic unit.
delete(DocumentReference<Object?> document) → void
Deletes the document referred to by document.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set<T>(DocumentReference<T> document, T data, [SetOptions? options]) → void
Writes to the document referred to by document.
toString() String
A string representation of this object.
inherited
update(DocumentReference<Object?> document, Map<String, dynamic> data) → void
Updates a given document.

Operators

operator ==(Object other) bool
The equality operator.
inherited