bytesToInt static method

int bytesToInt(
  1. Uint8List? bytes, {
  2. Endianness endianness = Endianness.Big,
})

Implementation

static int bytesToInt(Uint8List? bytes,
    {Endianness endianness = Endianness.Big}) {
  var stream = ByteStream(bytes!);
  return stream.readInt(stream.length, endianness: endianness);
}