Calculates the tax price for a taxRate
taxRate
Returns 0 if taxable is false
double calculateTaxe(double taxRate) { if (taxable != true) { return price ?? 0; } return price ?? 0 * taxRate; }