has method

bool has(
  1. String key
)

Whether key currently exists in storage.

Implementation

bool has(String key) {
  return read(key) != null;
}