adoptEntryFrom method

void adoptEntryFrom(
  1. BloomQueryScope source,
  2. List key
)

Copies a single entry from source into this scope (explicit public sharing).

Use to adopt explicitly shared public data (e.g. from BloomData.sharedPublicScope) into a private request scope without exposing private request state in the other direction.

Implementation

void adoptEntryFrom(BloomQueryScope source, List<dynamic> key) {
  _assertAlive();
  final entry = source._cache[BloomData.normalizeKey(key)];
  if (entry != null && !entry.isExpired) {
    _cache[BloomData.normalizeKey(key)] = entry;
  }
}