StoreProduct class
- Annotations
-
- @freezed
Constructors
- StoreProduct.new({required String id, ProductDetails? details, PurchaseDetails? purchase, String? error, DateTime? transactionDate, required StoreProductState state})
-
constfactory
- StoreProduct.fromDetails({ProductDetails? details, PurchaseDetails? purchase, StorePurchase? purchaseLocal})
-
factory
Properties
-
copyWith
→ $StoreProductCopyWith<
StoreProduct> -
no setterinherited
- details → ProductDetails?
-
no setterinherited
- error → String?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setterinherited
- purchase → PurchaseDetails?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → StoreProductState
-
no setterinherited
- transactionDate → DateTime?
-
no setterinherited
Methods
-
getDescriptionText(
{required String purchasesDescription, required String fallback}) → String -
getPriceText(
) → String? -
getTitleText(
{required String fallback}) → String -
isInProgress(
) → bool -
isPurchased(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited