TransactionPlatform class abstract

A TransactionPlatform is a set of read and write operations on one or more documents.

Inheritance
  • Object
  • PlatformInterface
  • TransactionPlatform

Constructors

TransactionPlatform()
Constructor.

Properties

commands List<Map<String, dynamic>>
Returns all transaction commands for the current instance.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(String documentPath) TransactionPlatform
Deletes the document referred to by the provided documentPath.
get(String documentPath) Future<DocumentSnapshotPlatform>
Reads the document referenced by the provided documentPath.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(String documentPath, Map<String, dynamic> data, [SetOptions? options]) TransactionPlatform
Writes to the document referred to by the provided documentPath. If the document does not exist yet, it will be created. If you pass SetOptions, the provided data can be merged into the existing document.
toString() String
A string representation of this object.
inherited
update(String documentPath, Map<String, dynamic> data) TransactionPlatform
Updates fields in the document referred to by documentPath. The update will fail if applied to a document that does not exist.

Operators

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

Static Methods

verify(TransactionPlatform instance) → void
Throws an AssertionError if instance does not extend TransactionPlatform.
override