getDoubleByValueStr static method

double? getDoubleByValueStr(
  1. String valueStr, {
  2. double? defValue = 0,
})

get double by value str.

Implementation

static double? getDoubleByValueStr(String valueStr, {double? defValue = 0}) {
  return double.tryParse(valueStr) ?? defValue;
}