Flake64 class

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

Constructors

Flake64({required int machineId, int machineBits = 10, int sequenceBits = 11, TimestampSource time = _currentMillis, int? epochYear, bool continuousSequence = false})
Create a Flake64 instance. The default configuration uses a 42-bit timestamp, 10-bit machine id, and 11-bit sequence.

Properties

hashCode int
The hash code for this object.
no setterinherited
machineBits int
Number of bits to store machine information
final
machineId int
The machine ID
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sequenceBits int
Number of bits to store the sequence information
final

Methods

nextHex() String
Gets the next value as a hex String.
nextInt() int
Gets the next value as an integer.
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