CartCache class

Implemented types

Constructors

CartCache(CartRepository reference)

Properties

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

Methods

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

Operators

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

Static Methods

refreshRelations(CartModel model) Future<CartModel>