DrawerCache class

Implemented types

Constructors

DrawerCache(DrawerRepository reference)

Properties

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

Methods

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

Operators

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

Static Methods

refreshRelations(DrawerModel model) Future<DrawerModel>