DocUpdateOrCreate<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>
- Subclasses: Collection and Repository for subclasses
- Implementations: FirefuelCollection and FirefuelRepository for subclasses
- Implementers
Constructors
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
-
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.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited