The App Store or Google Play, behind a small surface.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- platform → String
-
ios or android; sent to the server so it answers with this platform's product ids.
no setter
-
purchaseUpdates
→ Stream<
List< StorePurchaseUpdate> > -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buy(
StoreProductDetails product, {required bool consumable, required String accountId, StorePurchaseOffer? offer}) → Future< void> -
Starts the store sheet.
accountIdbecomes appAccountToken on iOS and obfuscatedAccountId on Android.offeris an App Store offer to apply; for a Google Play offer pass that offer'sproductinstead. -
complete(
StorePurchaseUpdate update) → Future< void> - Finishes the transaction (iOS) or acknowledges it (Android). Called only after the server recorded it.
-
isAvailable(
) → Future< bool> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
queryProducts(
Set< String> ids) → Future<List< StoreProductDetails> > -
restore(
{required String accountId}) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited