TraceState class

Representation of the state of a trace.

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

Implemented types

Constructors

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

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Whether this TraceState is empty.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
The number of key/value pairs contained in this TraceState.
no setteroverride

Methods

get(String key) String?
Retrieve a value from the TraceState for a given key.
override
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.
override
remove(String key) → void
Removes a key value pair from the TraceState.
override
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