DocumentItemCache class

Implemented types

Constructors

DocumentItemCache(DocumentItemRepository reference)

Properties

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

Methods

add(DocumentItemModel value) Future<DocumentItemModel>
Add a DocumentItemModel to the repository, cached
override
addEntity(String documentID, DocumentItemEntity value) Future<DocumentItemEntity>
Add a DocumentItemEntity to the repository, cached
override
changeValue(String documentId, String fieldName, num changeByThisValue) Future<DocumentItemModel>
override
delete(DocumentItemModel value) Future<void>
Delete a DocumentItemModel from the repository, cached
override
deleteAll() Future<void>
override
flush() → void
override
fromMap(Object? o, {Map<String, String>? newDocumentIds}) DocumentItemEntity?
override
get(String? id, {dynamic onError(Exception)?}) Future<DocumentItemModel?>
Retrieve a DocumentItemModel with it's id, cached
override
getEntity(String? id, {dynamic onError(Exception p1)?}) Future<DocumentItemEntity?>
override
getSubCollection(String documentId, String name) → dynamic
override
listen(DocumentItemModelTrigger trigger, {String? orderBy, bool? descending, Object? startAfter, int? limit, int? privilegeLevel, EliudQuery? eliudQuery}) StreamSubscription<List<DocumentItemModel?>>
override
listenTo(String documentId, DocumentItemChanged changed, {DocumentItemErrorHandler? errorHandler}) StreamSubscription<DocumentItemModel?>
override
listenWithDetails(DocumentItemModelTrigger trigger, {String? orderBy, bool? descending, Object? startAfter, int? limit, int? privilegeLevel, EliudQuery? eliudQuery}) StreamSubscription<List<DocumentItemModel?>>
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(DocumentItemModel value) Future<DocumentItemModel>
Update a DocumentItemModel
override
updateEntity(String documentID, DocumentItemEntity value) Future<DocumentItemEntity>
Update a DocumentItemEntity in the repository, cached
override
values({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Stream<List<DocumentItemModel?>>
Retrieve list of List<DocumentItemModel?>
override
valuesList({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Future<List<DocumentItemModel?>>
override
valuesListWithDetails({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Future<List<DocumentItemModel?>>
override
valuesWithDetails({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Stream<List<DocumentItemModel?>>
override

Operators

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