RestDelegate class

Inheritance

Constructors

RestDelegate.new({required QueryMatcher<Object?> doesMatchQuery, required String endpoint, required String id})

Properties

doesMatchQuery QueryMatcher<Object?>
finalinherited
endpoint String
final
generateCompareFromQuery QueryCompareGenerator<Object?, Object?>?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addDocument<ID extends Object?, T extends Object?>(String collectionPath, T data, [ID? documentId]) Future<DocumentSnapshot<ID, T>?>
creates a new document
override
deleteDocument<ID extends Object?>(String collectionPath, ID documentId) Future<void>
deletes the document
override
documentSnapshots<ID extends Object?, T extends Object?>(String collectionPath, ID documentId) Stream<DocumentSnapshot<ID, T>>
Notifies of document updates at this location.
override
getDocument<ID extends Object?, T extends Object?>(String collectionPath, ID documentId) Future<DocumentSnapshot<ID, T>>
Reads the document
override
getQuery<ID extends Object?, T extends Object?>(Query<ID, T> query) Future<QuerySnapshot<ID, T>>
Reads the document
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performOperation(Operation operation) Future
inherited
performTransaction(Transaction transaction, [dynamic doOperationsInParallel = false]) Future
inherited
querySnapshots<ID extends Object?, T extends Object?>(Query<ID, T> query) Stream<QuerySnapshot<ID, T>>
Notifies of document updates at this location.
override
setDocument<ID extends Object?, T extends Object?>(String collectionPath, ID documentId, T data) Future<void>
Sets data on the document, overwriting any existing data. If the document does not yet exist, it will be created.
override
toString() String
A string representation of this object.
inherited
updateDocument<ID extends Object?>(String collectionPath, ID documentId, Map<String, Object?> data) Future<void>
Updates data on the document. Data will be merged with any existing document data.
override

Operators

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

Static Properties

requestOptions → Options
final

Constants

idKey → const String