AiutaWishlistDataProviderCustom class

Inheritance
Annotations
  • @JsonSerializable()

Constructors

AiutaWishlistDataProviderCustom.new({required ValueListenable<List<String>> wishlistProductIds, required void setProductInWishlist(String productId, bool inWishlist)})
Creates an AiutaWishlistDataProvider with the listenable wishlistProductIds indicating the products IDs in the wishlist and the callback setProductInWishlist that is called when the user taps on the wishlist button.
AiutaWishlistDataProviderCustom.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setProductInWishlist → void Function(String productId, bool inWishlist)
Callback to set the inWishlist state for a product with productId.
final
type AiutaCustomizationType
The type of the data provider, indicating whether it is built-in or custom.
getter/setter pairinherited
wishlistProductIds ValueListenable<List<String>>
A ValueListenable list of products IDs in the wishlist. This list is used to track which products are in the user's wishlist, so that the UI can draw the correct state for each product.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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