number method

int number([
  1. Endian endian = Endian.big
])

Gets 64-bit unsiged integer from the message digest.

If endian is Endian.little, it will treat the digest bytes as a little endian number; Otherwise, if endian is Endian.big, it will treat the digest bytes as a big endian number.

Implementation

int number([Endian endian = Endian.big]) =>
    toBigInt(bytes, msbFirst: endian == Endian.big).toUnsigned(64).toInt();