currencyCode property
String
get
currencyCode
returns cuurency code of the first product variant or empty string if the list is empty
It is useful to show the currency code of the product in the product list
Implementation
String get currencyCode =>
productVariants.isEmpty ? '' : productVariants.first.price.currencyCode;