WriteBatchPlatform class Null safety
A write batch, used to perform multiple writes as a single atomic unit.
WriteBatch provides methods for adding writes to the write batch.
Operations done on a
WriteBatch do not take effect until you commit().
Once committed, no further operations can be performed on the
nor can it be committed again.
- Overridable constructor
) → Future< void>
- Commits all of the writes in this write batch as a single atomic unit.
String documentPath) → void
Deletes the document referred to by a
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
String documentPath, Map< String, dynamic>data, [SetOptions? options]) → void
- Writes to the document referred to by document.
) → String
A string representation of this object.
String documentPath, Map< String, dynamic>data) → void
- Updates fields in the document referred to by document.