SubscriptionService class final
Domain use case coordinating store events, verification, and entitlements.
Constructors
- SubscriptionService({required SubscriptionConfig config, required SubscriptionRepository repository, PurchaseVerifier? verifier})
Properties
- config → SubscriptionConfig
-
final
-
consumableDeliveryStream
→ Stream<
List< ConsumableDelivery> > -
no setter
- currentEntitlement → Entitlement?
-
no setter
-
entitlements
→ Map<
String, Entitlement> -
no setter
-
entitlementStream
→ Stream<
Map< String, Entitlement> > -
no setter
- hasAccess → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
no setter
- isPurchasing → bool
-
no setter
- isRestoring → bool
-
no setter
- isStoreAvailable → bool
-
no setter
-
pendingConsumables
→ List<
ConsumableDelivery> -
no setter
-
products
→ List<
StoreProduct> -
no setter
-
purchaseResultStream
→ Stream<
PurchaseResult> -
no setter
- repository → SubscriptionRepository
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snapshot → SubscriptionSnapshot
-
no setter
-
snapshotStream
→ Stream<
SubscriptionSnapshot> -
no setter
- verifier → PurchaseVerifier?
-
final
Methods
-
acknowledgeConsumablePurchase(
String purchaseId) → Future< void> -
dispose(
) → Future< void> -
getEntitlement(
String entitlementId) → Entitlement? -
getProduct(
String productId) → StoreProduct? -
initialize(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
purchase(
String productId) → Future< bool> -
refresh(
) → Future< void> -
restore(
) → Future< RestoreResult> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited