calculateSubTotal method
Implementation
String calculateSubTotal(String price, int percentage, bool isMilesUsed) {
final totalPrice = double.tryParse(price) ?? 0;
final subTotal =
totalPrice - (neoMileUsedValue(totalPrice, percentage, isMilesUsed));
return subTotal <= 0 ? '0.00' : subTotal.price;
}