TransactionPlatform class
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.
read-only
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
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 non-existent 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 provideddata
can be merged into the existing document. -
toString(
) → String -
Returns 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
-
verifyExtends(
TransactionPlatform instance) → dynamic -
Throws an
AssertionError
ifinstance
does not extend TransactionPlatform. [...]