PageCache class

Implemented types

Constructors

PageCache(PageRepository reference)

Properties

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

Methods

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

Operators

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

Static Methods

refreshRelations(PageModel model) Future<PageModel>