containsKey method Null safety

  1. @override
Future<bool> containsKey(
  1. String key

Determines if the Stash contains an entry for the specified key.

  • key: key whose presence in this stash is to be tested.

Returns true if this Stash contains a mapping for the specified key


Future<bool> containsKey(String key) =>
    _primary.containsKey(key).then((contains) =>
        contains ? Future.value(true) : _secondary.containsKey(key));