byDouble method

double? byDouble(
  1. String key, {
  2. double? defaultValue,
})

Implementation

double? byDouble(String key, {double? defaultValue}) {
  if (this[key] == null) return defaultValue;
  return double.tryParse(byString(key)!) ?? defaultValue;
}