ThreadID class

ThreadID represents a self-describing Thread identifier. It is formed by a version, a variant, and a random number of a given length.

Constructors

ThreadID(List<int> _bytes)
ThreadID.fromRandom({int version: 0x01, int variant: 0x55, int size: 32})
fromRandom creates a new random ID object. variant is the Thread variant to use. @see Variant size is the size of the random component to use. Defaults to 32 bytes.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toBytes() List<int>
toBytes returns the byte representation of an ID.
toString() String
toString returns the (multibase encoded) string representation of an ID.
override

Operators

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