has method

bool has(
  1. String key, {
  2. ConfigScope? scope,
})

Whether key exists in scope (or any scope if scope is null).

Implementation

bool has(String key, {ConfigScope? scope}) {
  if (scope != null) return _store[scope]!.containsKey(key);
  return _store.values.any((m) => m.containsKey(key));
}