CartItemCache class

Implemented types

Constructors

CartItemCache(CartItemRepository reference)

Properties

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

Methods

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

Operators

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

Static Methods

refreshRelations(CartItemModel model) Future<CartItemModel>