FakeSubscriptionService class
- Implemented types
Constructors
- FakeSubscriptionService.new({required Logger logger, required Preferences preferences, bool? initialState})
Properties
-
fetchedPaywalls
→ Map<
String, Paywall> -
All paywalls list, fetched on start
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger
-
final
-
paywallsStream
→ BehaviorSubject<
Map< String, Paywall> ?> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subscriptionStatus
→ BehaviorSubject<
bool> -
Stream with subscription status
final
- userId ↔ String?
-
Payment provider user id
getter/setter pairoverride-getter
Methods
-
addAttributionProviders(
Map< AttributionProvider, String> providers) → Future<void> -
Add attributes to the sub service to match between analytics
override
-
initialize(
) → Future< void> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paywallProducts(
{required String paywallId}) → List< ProductModel> -
All products from specific paywall.
If not found throws PaywallFindFailedException
override
-
purchase(
{required String productId, dynamic product}) → Future< bool> -
Purchase product by id
override
-
restorePurchases(
) → Future< bool> -
Restore all purchases
override
-
setAdvertisingIdentifier(
{required String? idfa, required String? idfv}) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited