optDouble method

double? optDouble(
  1. String key
)

Gets the value for the given key, returns null if null or wrong type

Implementation

double? optDouble(String key) {
  final value = _internalMap[key];
  return value is double ? value : null;
}