convertByteListToInt function

int convertByteListToInt(
  1. List<int> bytes
)

Convert byte list to int.

Implementation

int convertByteListToInt(List<int> bytes) {
  return Uint8List.fromList(bytes).buffer.asByteData().getInt64(0);
}