price property

double get price

return the first product variant price amount or 0 if the list is empty

This is the price of the product variant with the title 'Default Title' It is useful to show the price of the product in the product list

Implementation

double get price =>
    productVariants.isEmpty ? 0 : productVariants.first.price.amount;