Product constructor
const
Product({
- required bool active,
- required DateTime created,
- PriceOrId? defaultPrice,
- String? description,
- required List<
ProductMarketingFeature> features, - required String id,
- required List<
String> images, - required bool livemode,
- required Map<
String, String> metadata, - required String name,
- PackageDimensions? packageDimensions,
- bool? shippable,
- String? statementDescriptor,
- TaxCodeOrId? taxCode,
- required ProductType type,
- String? unitLabel,
- required DateTime updated,
- String? url,
Product
Products describe the specific goods or services you offer to your customers. For example, you might offer a Standard and Premium version of your goods or service; each version would be a separate Product. They can be used in conjunction with [Prices](https://stripe.com/docs/api#prices) to configure pricing in Payment Links, Checkout, and Subscriptions. Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription), [share a Payment Link](https://stripe.com/docs/payment-links), [accept payments with Checkout](https://stripe.com/docs/payments/accept-a-payment#create-product-prices-upfront), and more about [Products and Prices](https://stripe.com/docs/products-prices/overview)
Implementation
const Product({
required this.active,
required this.created,
this.defaultPrice,
this.description,
required this.features,
required this.id,
required this.images,
required this.livemode,
required this.metadata,
required this.name,
this.packageDimensions,
this.shippable,
this.statementDescriptor,
this.taxCode,
required this.type,
this.unitLabel,
required this.updated,
this.url,
});