toInt method

int toInt({
  1. Endianness endianness = Endianness.Big,
})

Converts bytes to an integer with the specified endianness.

Implementation

int toInt({Endianness endianness = Endianness.Big}) =>
    ByteUtils.bytesToInt(this, endianness: endianness);