DocCreate<R, T extends Serializable> class abstract

Create a new Document

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

Implementers

Constructors

DocCreate()

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

create(T value) Future<R>
Create a new document with an auto-generated DocumentId
createById({required T value, required DocumentId docId}) Future<R>
Create a new document with the provided docId
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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