CartRepository class

Constructors

CartRepository({Map<PaynowCartItem, int> paynowCartItems = const <PaynowCartItem, int>{}})

Properties

currentPaynowItems List<PaynowCartItem>
Get List of current paynowCartItems
no setter
hashCode int
The hash code for this object.
no setterinherited
info String
Return Info of items in cart.
no setter
paynowCartItems Map<PaynowCartItem, int>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
total double
Total amount of items in cart.
no setter

Methods

addToCart(PaynowCartItem cartItem, {int? quantity}) → void
Adding PaynowCartItem to Payment.items quantity
clearCart() → void
Clear the cart
deleteCartItem(PaynowCartItem cartItem) → void
Delete Item from cart
getQuantity(PaynowCartItem paynowCartItem) int
Get Quantity
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeFromCart(PaynowCartItem cartItem, {int? quantity}) → void
Remove PaynowCartItems from Payment.items
toString() String
A string representation of this object.
inherited

Operators

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