double? amountDouble(String? amount) { if (amount == null) { return 0.00; } return double.parse(amount); // double.parse(amount.replaceAll(RegExp(r',|\s+|-'), '')); }