Returns the number inside a String.
double? extractNumberFromString() { final RegExp regExp = RegExp(r"[^\d.]+"); final String numStr = replaceAll(regExp, ""); return double.tryParse(numStr); }