SpanId class

Class representing an ID for a single api.Span. See https://www.w3.org/TR/trace-context/#parent-id for full specification.

Constructors

SpanId(List<int> _id)
SpanId.fromIdGenerator(IdGenerator generator)
factory
SpanId.fromString(String id)
factory
SpanId.invalid()
SpanId.root()

Properties

hashCode int
The hash code for this object.
no setterinherited
isValid bool
Whether this ID represents a valid api.Span.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get() List<int>
Retrieve this SpanId as a list of byte values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Retrieve this SpanId as a human-readable ID.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

sizeBits → const int
sizeBytes → const int