number static method
Parse an int number into a 128-bit UUID string.
e.g. 0x1800 to 00001800-0000-1000-8000-00805f9b34fb.
Implementation
static String number(int short) {
if (short <= 0xFF || short > 0xFFFF) {
throw const FormatException('Invalid UUID');
}
return string(short.toRadixString(16).padLeft(4, '0'));
}