CartServiceImp class Null safety

Inheritance
Implemented types

Constructors

CartServiceImp({String defaultPath = ''})

Properties

defaultPath String
final, inherited
dio Dio
final, inherited
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?>
override
cartDiscountNotification({required int customerId}) Future<String>
Called first thing in cart page to get all client's discounts
override
deleteData({String? path, Map<String, dynamic> queryParameters = const {}, Map<String, dynamic>? headers}) Future<Response>
inherited
getCartCounter({required int customerId}) Future<int>
override
getCartList({required int customerId}) Future<List<CartItemModel>>
override
getCartSummary({required int customerId}) Future<CartSummaryModel>
Get all the information about cart for checkout
override
getData({String? path, Map<String, dynamic> queryParameters = const {}, Map<String, dynamic>? headers}) Future<Response>
inherited
guestCartUpdate({required List<CartSkuModel> cartSkuModel}) Future<List<CartItemModel>>
Update cart in guest user case
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
postData({dynamic data, String? path, Map<String, dynamic> queryParameters = const {}, Map<String, dynamic>? headers}) Future<Response>
inherited
preOrderMessage({required int customerId}) Future<PreOrderMessageModel>
Notify user when booking pre-order product [...]
override
putData(dynamic data, {String? path, Map<String, dynamic> queryParameters = const {}, Map<String, dynamic>? headers}) Future<Response>
inherited
removeFromCart({required int skuId, required int customerId}) Future<bool?>
override
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
override

Operators

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