parseDouble static method
获取int值
defValue
默认值
Implementation
static double parseDouble(String? valueStr, {double? defValue}) {
if (valueStr == null || valueStr.isEmpty)
return defValue == null ? 0.0 : defValue;
var newValue = double.tryParse(valueStr);
if (newValue == null) {
return defValue == null ? 0.0 : defValue;
}
return newValue;
}