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
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 provideddata
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