pricingPhases property

List<PricingPhase> get pricingPhases

Converts the new Google Play Model to a known list of pricing phases

on apple it does the same.

Implementation

List<PricingPhase> get pricingPhases {
  if (productDetails is GooglePlayProductDetails) {
    return [for (final phaseWrapper in googlePlayPricingPhases) PricingPhase.fromGooglePlay(phaseWrapper)];
  }
  if (productDetails is AppStoreProductDetails) {
    return [PricingPhase.fromAppStore(appStoreProductDetails.skProduct)];
  }
  throw UnsupportedError("Store not supported");
}