littleEndian32ToInt function
Converts the given bytes
to a 32-bit unsigned integer in little-endian
byte order.
Implementation
int littleEndian32ToInt(List<int> bytes) {
assert(bytes.length == 4);
return ByteData.view(Uint8List.fromList(bytes).buffer)
.getUint32(0, Endian.little);
}