current property Null safety

StackTraceFormatter? current

Returns the current manager, or null if this isn't called within a call to asCurrent.

Implementation

static StackTraceFormatter? get current =>
    Zone.current[_currentKey] as StackTraceFormatter?;