PurchasesUpgrade class final
Constructors
-
PurchasesUpgrade({required String claim, required String name, required String description, required List<
String> benefits, required bool active, PurchasePlan? plan, PurchaseRecordStore? store, required bool renews, String? endsAt}) -
const
-
PurchasesUpgrade.fromJson(Map<
String, Object?> json) -
factory
Properties
- active → bool
-
Whether the end user has the upgrade now; the claim says the same after the next token refresh.
final
-
benefits
→ List<
String> -
What it unlocks, one line each, as the paywall lists them.
final
- claim → String
-
The boolean claim the upgrade sets.
final
- description → String
-
final
- endsAt → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The upgrade as people see it, such as "Plus".
final
- plan → PurchasePlan?
-
final
- renews → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- store → PurchaseRecordStore?
-
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