getDoubleFromString function

double? getDoubleFromString(
  1. String? string
)

Implementation

double? getDoubleFromString(String? string) {
  if (string != null) return double.tryParse(string);
  return null;
}