ID constructor

ID(
  1. int machineId
)

Implementation

ID(this.machineId) {
  if (machineId < 0 || machineId > MAX_MACHINE_ID) {
    throw Exception('Machine ID should be between 0 and $MAX_MACHINE_ID');
  }
}