PurchaseProduct class final
Constructors
- PurchaseProduct({required PurchaseKind kind, required String item, PurchasePlan? plan, int? amount, required String name, required String description, required String price, int? freeTrialDays, String? appStore, required PurchaseProductGooglePlay googlePlay})
-
const
-
PurchaseProduct.fromJson(Map<
String, Object?> json) -
factory
Properties
- amount → int?
-
final
- appStore → String?
-
final
- description → String
-
final
- freeTrialDays → int?
-
final
- googlePlay → PurchaseProductGooglePlay
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- item → String
-
Its name in the payments config: the upgrade’s claim, the unlock, or the credits.
final
- kind → PurchaseKind
-
final
- name → String
-
As people see it: the upgrade’s or the unlock’s name, or the credits’ plural.
final
- plan → PurchasePlan?
-
final
- price → String
-
The config’s US price, such as "4.99". Show the store’s own price where the store gives one; this is for the preview’s pretend store.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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