getNumberValue method

double? getNumberValue(
  1. String? value
)

Implementation

double? getNumberValue(String? value) {
  if (value == null) {
    return null;
  }
  return double.tryParse(
      value.replaceAll(',', '.').replaceAll(RegExp(r'[^\d.]'), ''));
}