currentScope property

LogScope get currentScope

The current scope from the Zone, or a synthetic root if none.

Implementation

LogScope get currentScope =>
    Zone.current[_logScopeKey] as LogScope? ?? _fallbackScope;