Xid class

A globally unique identifier for objects.

Consists of 12 bytes, divided as follows:

layout
01234567891011
timerandom valueinc

Instances of this class are immutable.

Constructors

Xid()
Creates a new instance of xid
Xid.fromString(String newXid)
Constructs a new instance of xid from the given a string of xid throws InvalidXidException if the string supplied is not a valid xid

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes() List<int>
Returns the byte representation of the current xid instance
toString() String
A string representation of this object.
override

Operators

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

Static Methods

get() Xid
Creates and returns a new instance of xid
string() String
Creates a new instance of xid and returns the string representation