tryDouble method

  1. @override
double? tryDouble(
  1. K key, {
  2. double? min,
  3. double? max,
})
override

Returns a value at key as double or null if missing.

If provided min and max are used to clamp the returned value.

null is returned if an underlying value is unavailable or cannot be converted to double.

Implementation

@override
double? tryDouble(K key, {double? min, double? max}) {
  try {
    return getDouble(key, min: min, max: max);
  } on Exception {
    return null;
  }
}