doubleOrDefault method

double doubleOrDefault(
  1. String key,
  2. double defaultValue
)

Implementation

double doubleOrDefault(String key, double defaultValue) =>
    configJson.containsKey(key)
        ? double.tryParse(configJson[key].toString()) ?? defaultValue
        : defaultValue;