tryReadDouble method

double? tryReadDouble(
  1. dynamic source,
  2. dynamic key
)

Tries to read a double value from the source. If the value is not a double, it returns null.

Implementation

double? tryReadDouble(source, key) {
  var value = readValue(source, key);
  return isDouble(value) ? value as double : null;
}