ProductCache class

Implemented types

Constructors

ProductCache(ProductRepository reference)

Properties

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

Methods

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

Operators

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

Static Methods

refreshRelations(ProductModel model) Future<ProductModel>