static Uint8List intToByteArray(int value) { final bytes = Uint8List(4); bytes[0] = value >> 24; bytes[1] = value >> 16; bytes[2] = value >> 8; bytes[3] = value; return bytes; }