price property

double price

Implementation

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