Snowflake constructor
Snowflake(
- int workerId
Implementation
Snowflake(this.workerId) {
if (workerId > workerIdMaxValue || workerId < 1) {
throw const SnowflakeException(
"worker id can't be greater than $workerIdMaxValue or less than 1");
}
}