TraceState class

Representation of the state of a trace.

See W3C documentation: https://www.w3.org/TR/trace-context/#tracestate-header

Constructors

TraceState.empty()
TraceState.fromString(String traceState)

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
no setter

Methods

get(String key) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String key, String value) → void
Adds a key value pair to the TraceState.
remove(String key) → void
Removes a key value pair from the TraceState.
toString() String
A string representation of this object.
override

Operators

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

Static Properties

validKeyRegex RegExp
final
validValueRegex RegExp
final

Static Methods

getDefault() TraceState