CartRepository class
Constructors
-
CartRepository({Map<PaynowCartItem, int> paynowCartItems = const <PaynowCartItem, int>{}})
-
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
PaynowCartItem
s from Payment.items
-
toString()
→ String
-
A string representation of this object.
inherited