convertToDouble function Null safety

dynamic convertToDouble(
  1. String v
)

Implementation

dynamic convertToDouble(String v) {
  try {
    return double.parse(v);
  } on FormatException {
    return propConfig[v] ?? v;
  }
}