amountDouble function

double? amountDouble(
  1. String? amount
)

Implementation

double? amountDouble(String? amount) {
  if (amount == null) {
    return 0.00;
  }

  return double.parse(amount);
  // double.parse(amount.replaceAll(RegExp(r',|\s+|-'), ''));
}