PostCache class

Implemented types

Constructors

PostCache(PostRepository reference)

Properties

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

Methods

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

Operators

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

Static Methods

refreshRelations(PostModel model) → Future<PostModel>