getPriceProductValueString static method

String getPriceProductValueString({
  1. required double? price,
  2. double? salePrice,
  3. bool? onSale,
  4. int decimals = 0,
})

Implementation

static String getPriceProductValueString(
    {required double? price,
    double? salePrice,
    bool? onSale,
    int decimals = 0}) {
  return '${formatPrice(getPriceProductValue(price: price, salePrice: salePrice, onSale: onSale))} €';
}