AiutaWishlistDataProviderCustom class
- Inheritance
-
- Object
- AiutaWishlistDataProvider
- AiutaWishlistDataProviderCustom
- Annotations
-
- @JsonSerializable()
Constructors
-
AiutaWishlistDataProviderCustom.new({required ValueListenable<
List< wishlistProductIds, required void setProductInWishlist(String productId, bool inWishlist)})String> > -
Creates an AiutaWishlistDataProvider with the listenable
wishlistProductIds
indicating the products IDs in the wishlist and the callbacksetProductInWishlist
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 withproductId
.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