ItemDetails constructor

ItemDetails({
  1. required String itemId,
  2. required String title,
  3. required PaymentCurrencyAmount price,
  4. ItemType? type,
  5. String? description,
  6. Iterable<String>? iconURLs,
  7. String? subscriptionPeriod,
  8. String? freeTrialPeriod,
  9. PaymentCurrencyAmount? introductoryPrice,
  10. String? introductoryPricePeriod,
  11. int? introductoryPriceCycles,
})

Implementation

factory ItemDetails(
        {required String itemId,
        required String title,
        required PaymentCurrencyAmount price,
        ItemType? type,
        String? description,
        Iterable<String>? iconURLs,
        String? subscriptionPeriod,
        String? freeTrialPeriod,
        PaymentCurrencyAmount? introductoryPrice,
        String? introductoryPricePeriod,
        int? introductoryPriceCycles}) =>
    ItemDetails._(
        itemId: itemId,
        title: title,
        price: price,
        type: type?.value ?? undefined,
        description: description ?? undefined,
        iconURLs: iconURLs ?? undefined,
        subscriptionPeriod: subscriptionPeriod ?? undefined,
        freeTrialPeriod: freeTrialPeriod ?? undefined,
        introductoryPrice: introductoryPrice ?? undefined,
        introductoryPricePeriod: introductoryPricePeriod ?? undefined,
        introductoryPriceCycles: introductoryPriceCycles ?? undefined);