Snowflake class

snowflake include the mainly logic

Constructors

Snowflake(int _workerId, int _datacenterId)

Properties

currentTimeStamp int
返回以秒为单位的当前时间 @return 当前时间(秒)
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getId() int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
untilNextMillis(int lastTimestamp) int

Operators

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