Flake128 class

Generates 128-bit, mostly-unique, k-ordered values.

Constructors

Flake128({required int machineId, TimestampSource time = _currentMicros, bool continuousSequence = false})
Create a Flake128 instance.

Properties

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

Methods

nextHex() String
Gets the next value as a hex String.
nextInt() int
Gets the next value as an integer.
nextUuid() String
Gets the next value as a UUID-formatted String.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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