DocumentItemCache class Null safety

Implemented types

Constructors

DocumentItemCache(DocumentItemRepository reference)

Properties

fullCache Map<String?, DocumentItemModel?>
final
hashCode int
The hash code for this object. [...]
read-only, inherited
reference DocumentItemRepository
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(DocumentItemModel value) → dynamic
Add a DocumentItemModel to the repository, cached
override
addEntity(String documentID, DocumentItemEntity value) → dynamic
Add a DocumentItemEntity to the repository, cached
override
changeValue(String documentId, String fieldName, num changeByThisValue) → dynamic
override
delete(DocumentItemModel value) → dynamic
Delete a DocumentItemModel from the repository, cached
override
deleteAll() → dynamic
override
flush() → void
override
fromMap(Object? o, {Map<String, String>? newDocumentIds}) DocumentItemEntity?
override
get(String? id, {dynamic onError(Exception)?}) → dynamic
Retrieve a DocumentItemModel with it's id, cached
override
getEntity(String? id, {dynamic onError(Exception p1)?}) → dynamic
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) → dynamic
Update a DocumentItemModel
override
updateEntity(String documentID, DocumentItemEntity value) → dynamic
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}) → dynamic
override
valuesListWithDetails({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) → dynamic
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

Static Methods

refreshRelations(DocumentItemModel model) → dynamic