getDoubleFromStr function

double getDoubleFromStr(
  1. dynamic str,
  2. {double defDouble = 0}
)

Implementation

double getDoubleFromStr(dynamic str, {double defDouble = 0}) {
  return isNumeric(str) ? double.parse(str) : defDouble;
}