containsKey method

bool containsKey(
  1. String key
)

Returns true if cache contains the given key.

Throws an ArgumentError if key is not in this instance's filter.

Implementation

bool containsKey(String key) {
  if (!_isValidKey(key)) {
    throw ArgumentError(
        '$key is not included in the PreferencesFilter allowlist');
  }
  return _cache.containsKey(key);
}