tryReadDouble method
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;
}