bytesToInt static method
Converts bytes to an integer with the specified endianness.
Implementation
static int bytesToInt(
Uint8List? bytes, {
Endianness endianness = Endianness.Big,
}) {
var stream = ByteStream(bytes!);
return stream.readInt(stream.length, endianness: endianness);
}