contains method Null safety

bool contains(
  1. String restorationId
)

Checks whether a value stored in the bucket under the provided restorationId.

See also:

  • read, which retrieves a stored value from the bucket.
  • write, which stores a value in the bucket.
  • remove, which removes a value from the bucket.

Implementation

bool contains(String restorationId) {
  assert(_debugAssertNotDisposed());
  assert(restorationId != null);
  return _rawValues.containsKey(restorationId);
}