LinkCache class

Implemented types

Constructors

LinkCache(LinkRepository reference)

Properties

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

Methods

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

Operators

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

Static Methods

refreshRelations(LinkModel model) Future<LinkModel>