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