currentScope property

BloomQueryScope get currentScope

Request scope for the current Zone, or the shared browser scope.

Inside runWithScope / withRequestScope, returns that request's private BloomQueryScope. Outside any scope (browser, tests, SSG), returns browserScope for ergonomic static use.

Implementation

static BloomQueryScope get currentScope =>
    Zone.current[scopeZoneKey] as BloomQueryScope? ?? _browserScope;