containsKey method

  1. @nonVirtual
  2. @override
Future<bool> containsKey(
  1. Key key, [
  2. Options? options
])
override

Returns a future complete with value true if the persistent storage contains the given key.

Implementation

@nonVirtual
@override
Future<bool> containsKey(Key key, [Options? options]) async {
  assert(_debugAssertNotDisposed());

  return await _useStorage((s) => s.containsKey(key, options));
}