toDouble static method

double toDouble(
  1. dynamic d,
  2. double def
)

Converts to not-nullable double

Implementation

static double toDouble(dynamic d, double def) {
  return toDoubleN(d) ?? def;
}