ProductDetails class

The class represents the information of a product.

Constructors

ProductDetails({required String id, required String title, required String description, required String price, required double rawPrice, required String currencyCode, String currencySymbol = ''})
Creates a new product details object with the provided details.

Properties

currencyCode String
The currency code for the price of the product. Based on the price specified in the App Store Connect or Sku in Google Play console based on the platform.
final
currencySymbol String
The currency symbol for the locale, e.g. $ for US locale.
final
description String
The description of the product.
final
hashCode int
The hash code for this object.
no setterinherited
id String
The identifier of the product.
final
price String
The price of the product, formatted with currency symbol ("$0.99").
final
rawPrice double
The unformatted price of the product, specified in the App Store Connect or Sku in Google Play console based on the platform. The currency unit for this value can be found in the currencyCode property. The value always describes full units of the currency. (e.g. 2.45 in the case of $2.45)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
The title of the product.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited