oneTimePurchasePrice property
OneTimePurchasePrice
get
oneTimePurchasePrice
Implementation
OneTimePurchasePrice get oneTimePurchasePrice {
if (productDetails is GooglePlayProductDetails) {
return OneTimePurchasePrice.fromGooglePlay(googlePlayProductDetails);
}
if (productDetails is AppStoreProductDetails) {
return OneTimePurchasePrice.fromAppStore(appStoreProductDetails);
}
throw UnsupportedError("Store not supported");
}