CartService class Null safety

Implementers

Constructors

CartService()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addToCart({required List<CartSkuModel> cartSkuModel, required int customerId}) Future<bool?>
cartDiscountNotification({required int customerId}) Future<String>
Called first thing in cart page to get all client's discounts
getCartCounter({required int customerId}) Future<int>
getCartList({required int customerId}) Future<List<CartItemModel>>
getCartSummary({required int customerId}) Future<CartSummaryModel>
Get all the information about cart for checkout
guestCartUpdate({required List<CartSkuModel> cartSkuModel}) Future<List<CartItemModel>>
Update cart in guest user case
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
preOrderMessage({required int customerId}) Future<PreOrderMessageModel>
Notify user when booking pre-order product [...]
removeFromCart({required int skuId, required int customerId}) Future<bool?>
toString() String
A string representation of this object. [...]
inherited
visitorDiscountNotification({required List<CartSkuModel> cartSkuModel}) Future<String>
Called first thing in cart page to get all guest's discounts

Operators

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