calculateTaxe method

double calculateTaxe(
  1. double taxRate
)

Calculates the tax price for a taxRate

Returns 0 if taxable is false

Implementation

double calculateTaxe(double taxRate) {
  if (taxable != true) {
    return price ?? 0;
  }
  return price ?? 0 * taxRate;
}