DocCreateIfNotExist<R, T extends Serializable> class abstract

Do some action, then create a Document if it doesn't exist

R: should return a T or some subset, i.e. Either<Failure, T>

Implemented types
Implementers

Constructors

DocCreateIfNotExist()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readOrCreate({required DocumentId docId, required T createValue}) Future<R>
Get the document by id, or create a new one
toString() String
A string representation of this object.
inherited
updateOrCreate({required DocumentId docId, required T value}) Future<R>
Updates data on the document if it exists. Data will be merged with any existing document data.
inherited

Operators

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