containsKey method
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
Implementation
@override
Future<bool> containsKey(String key) {
// Current time
final now = clock.now();
return _getStorageEntry(key).then((entry) {
return entry != null && !entry.isExpired(now);
});
}