Skip to content

Wishlist

Source: pharmanet/lib/features/public/presentation/pages/wishlist_page.dart

Pages

Page File Description
WishlistPage features/public/presentation/pages/wishlist_page.dart Saved products list

Provider

Source: pharmanet/lib/core/providers/wishlist_provider.dart

Provider Type Description
wishlistProvider AsyncNotifierProvider<List<Product>> Wishlist items

API

Source: pharmanet/lib/core/api/wishlist_api.dart

Method Description
fetchWishlist() Get wishlist with items
addToWishlist(productId) Add product
removeFromWishlist(productId) Remove product
isInWishlist(productId) Check if already saved

Bookmark Provider

Source: pharmanet/lib/core/providers/bookmark_provider.dart

Provider Type Description
bookmarkProvider AsyncNotifierProvider<List<Map<String, dynamic>>> Generic bookmarks
  • Products — Products that can be wishlisted
  • Cart — Add wishlist items to cart