DocumentCache class

Implemented types

Constructors

DocumentCache(DocumentRepository reference)

Properties

fullCache Map<String?, DocumentModel?>
final
hashCode int
The hash code for this object.
no setterinherited
reference DocumentRepository
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(DocumentModel value) Future<DocumentModel>
Add a DocumentModel to the repository, cached
override
addEntity(String documentID, DocumentEntity value) Future<DocumentEntity>
Add a DocumentEntity to the repository, cached
override
changeValue(String documentId, String fieldName, num changeByThisValue) Future<DocumentModel>
override
delete(DocumentModel value) Future<void>
Delete a DocumentModel from the repository, cached
override
deleteAll() Future<void>
override
flush() → void
override
fromMap(Object? o, {Map<String, String>? newDocumentIds}) DocumentEntity?
override
get(String? id, {dynamic onError(Exception)?}) Future<DocumentModel?>
Retrieve a DocumentModel with it's id, cached
override
getEntity(String? id, {dynamic onError(Exception p1)?}) Future<DocumentEntity?>
override
getSubCollection(String documentId, String name) → dynamic
override
listen(DocumentModelTrigger trigger, {String? orderBy, bool? descending, Object? startAfter, int? limit, int? privilegeLevel, EliudQuery? eliudQuery}) StreamSubscription<List<DocumentModel?>>
override
listenTo(String documentId, DocumentChanged changed, {DocumentErrorHandler? errorHandler}) StreamSubscription<DocumentModel?>
override
listenWithDetails(DocumentModelTrigger trigger, {String? orderBy, bool? descending, Object? startAfter, int? limit, int? privilegeLevel, EliudQuery? eliudQuery}) StreamSubscription<List<DocumentModel?>>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
timeStampToString(dynamic timeStamp) String?
override
toString() String
A string representation of this object.
inherited
update(DocumentModel value) Future<DocumentModel>
Update a DocumentModel
override
updateEntity(String documentID, DocumentEntity value) Future<DocumentEntity>
Update a DocumentEntity in the repository, cached
override
values({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Stream<List<DocumentModel?>>
Retrieve list of List<DocumentModel?>
override
valuesList({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Future<List<DocumentModel?>>
override
valuesListWithDetails({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Future<List<DocumentModel?>>
override
valuesWithDetails({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Stream<List<DocumentModel?>>
override

Operators

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

Static Methods

refreshRelations(DocumentModel model) Future<DocumentModel>