ID class

Constructors

ID(int machineId)

Properties

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

Methods

getSnowflakeID() String
getUniqueID([int length = 4, bool timeStamp = true]) 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

Static Properties

lastTimestamp int
getter/setter pair
sequence int
getter/setter pair

Static Methods

waitNextMillis(int lastTimestamp) int

Constants

EPOCH → const int
MACHINE_ID_BITS → const int
MAX_MACHINE_ID → const int
MAX_SEQUENCE → const int
SEQUENCE_BITS → const int