ActiveSubscription class

Constructors

ActiveSubscription({bool? autoRenewingAndroid, String? basePlanIdAndroid, String? currentPlanId, double? daysUntilExpirationIOS, String? environmentIOS, double? expirationDateIOS, required bool isActive, required String productId, String? purchaseToken, String? purchaseTokenAndroid, RenewalInfoIOS? renewalInfoIOS, required double transactionDate, required String transactionId, bool? willExpireSoon})
const
ActiveSubscription.fromJson(Map<String, dynamic> json)
factory

Properties

autoRenewingAndroid → bool?
final
basePlanIdAndroid → String?
final
currentPlanId → String?
The current plan identifier. This is:
final
daysUntilExpirationIOS → double?
final
environmentIOS → String?
final
expirationDateIOS → double?
final
hashCode → int
The hash code for this object.
no setterinherited
isActive → bool
final
productId → String
final
purchaseToken → String?
final
purchaseTokenAndroid → String?
Required for subscription upgrade/downgrade on Android
final
renewalInfoIOS → RenewalInfoIOS?
Renewal information from StoreKit 2 (iOS only). Contains details about subscription renewal status, pending upgrades/downgrades, and auto-renewal preferences.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transactionDate → double
final
transactionId → String
final
willExpireSoon → bool?
@deprecated iOS only - use daysUntilExpirationIOS instead. Whether the subscription will expire soon (within 7 days). Consider using daysUntilExpirationIOS for more precise control.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited