AppCache class

Implemented types

Constructors

AppCache(AppRepository reference)

Properties

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

Methods

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

Operators

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

Static Methods

refreshRelations(AppModel model) Future<AppModel>