DartCart class

Constructors

DartCart()
factory

Properties

cartItem List<CartItem>
no setter
hashCode int
The hash code for this object.
no setterinherited
message CartResponseWrapper
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addToCart({required dynamic productId, required dynamic unitPrice, String? productName, int quantity = 1, dynamic uniqueCheck, dynamic productDetailsObject}) → dynamic
This method is called when we have to add productTemp into cart
decrementItemFromCart(int index) → dynamic
This function is used to decrement the item quantity from cart
deleteAllCart() → dynamic
deleteItemFromCart(int index) → dynamic
findItemIndexFromCart(dynamic cartId) int?
getCartItemCount() → dynamic
This method is called when we have to get the cart lenght
getSpecificItemFromCart(dynamic cartId) CartItem?
getTotalAmount() → dynamic
This method is called when we have to get the Total amount
incrementItemToCart(int index) → dynamic
This function is used to increment the item quantity into cart
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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