NoopScope constructor

NoopScope({
  1. Span? span,
})

Returns a new NoopScope, which will use the supplied Span. If no Span is supplied, a static instance of a NoopSpan will be used.

Implementation

NoopScope({Span? span}) : _span = span ?? _noopSpan;