PurchaseService class abstract

Implementers

Constructors

PurchaseService.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buyConsumable(ProductItem productItem, UserReferenceMapper? userReference) Future<Either<Failure, bool>>
buyNonConsumable(ProductItem productItem, UserReferenceMapper? userReference, [bool isChange]) Future<Either<Failure, bool>>
completePendingTransactions([String username]) Future<Either<Failure, Unit>>
completeTransaction(Transaction transaction) Future<Either<Failure, Unit>>
getCatalogProductsFromStore(Set<String> productIds, List<PurchaseProductListing>? listings) Future<Either<Failure, CatalogProduct>>
getProductListing() Future<Either<Failure, List<PurchaseProductListing>>>
isAvailable() Future<Either<Failure, bool>>
listenPurchase() Future<Either<Failure, Stream<List<Transaction>>>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestRestorePurchases([String username]) Future<Either<Failure, Unit>>
toString() String
A string representation of this object.
inherited
verifyTransaction(Transaction transaction, Map<String, dynamic>? params) Future<Either<Failure, TransactionVerificationResult>>

Operators

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