Snowflake class
snowflake include the mainly logic
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastTimestamp ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sequence ↔ int
-
getter/setter pair
- workerId ↔ int
-
getter/setter pair
Methods
-
getId(
) → int - genreate the snowflake id
-
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
Constants
- epoch → const int
- timestamp start from (Wed Oct 26 2021 00:00:00 GMT+0800 (China Standard Time)).
- maxTimestampBackwardsToWait → const int
- sequenceBits → const int
- squenceMask → const int
- timestampEftShiftBits → const int
- workerIdEftShiftBits → const int
- workerIdMaxValue → const int
- wrokerIdBits → const int