DVStoreOffer class
One offer a store lists for a product, with its own price and period.
Constructors
- DVStoreOffer({required String id, required DVStoreOfferKind kind, DVMoney? price, String? displayPrice, String? period, int periods = 1, String? token, bool eligible = true})
-
const
Properties
- displayPrice → String?
-
The store's own formatting of price. Shown as is.
final
- eligible → bool
-
Whether the store says the signed-in store account can take it. An
introductory offer already used is listed and not eligible.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The offer identifier the store knows: the App Store offer id, the Play
offer id (or base plan id for DVStoreOfferKind.basePlan).
final
- kind → DVStoreOfferKind
-
final
- period → String?
-
ISO 8601 duration of one period, such as
P1W.final - periods → int
-
How many periods the offer lasts.
final
- price → DVMoney?
-
Each period's price in the customer's currency, from the store. Null
for a free trial.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → String?
-
Play's
offerToken, which the purchase must carry. Null on the App Store.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, Object?> json) → DVStoreOffer