SubscriptionConfig class final

Configuration for one subscription store integration.

Constructors

SubscriptionConfig({required List<ProductDefinition> products, String? defaultEntitlementId, VerificationMode verificationMode = VerificationMode.local, String storageKeyPrefix = 'flutter_in_app_purchase', Duration expiryCheckInterval = const Duration(hours: 1)})

Properties

defaultEntitlementId → String?
final
effectiveDefaultEntitlementId → String?
no setter
expiryCheckInterval → Duration
final
hashCode → int
The hash code for this object.
no setterinherited
productIds → Set<String>
no setter
products → List<ProductDefinition>
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
storageKeyPrefix → String
final
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
verificationMode → VerificationMode
final

Methods

getProduct(String productId) → ProductDefinition?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
productsForEntitlement(String entitlementId) → List<ProductDefinition>
toString() → String
A string representation of this object.
inherited

Operators

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