isValid property

bool get isValid

Returns whether this span context is valid A span context is valid when it has a non-zero traceId and a non-zero spanId.

Implementation

bool get isValid => spanContext.isValid;