ItemDetails constructor
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,
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);