FlutterCart class Null safety

Constructors

FlutterCart()
factory

Properties

cartItem List<CartItem>
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
message CartResponseWrapper
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addToCart({dynamic productId, 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 non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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