BlockingCache class

Implemented types

Constructors

BlockingCache(BlockingRepository reference)

Properties

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

Methods

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

Operators

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

Static Methods

refreshRelations(BlockingModel model) Future<BlockingModel>