removeAllFromWishlist method Null safety
- {required int customerId}
override
Implementation
@override
Future<bool?> removeAllFromWishlist({required int customerId}) async {
final response = await postData(
path: 'profile/WishList/removeall',
queryParameters: {'customerID': customerId},
);
final result = ApiReturnResult.fromJSON(response.data);
if (result.code == 200) {
return result.data ?? true;
} else {
throw ExceptionApi(code: result.code, message: result.error?.first);
}
}