toInt32 method

int toInt32(
  1. List<int> list,
  2. int idx
)

Implementation

int toInt32(List<int> list, int idx) {
  var arr = Uint8List.fromList(list).buffer;
  ByteData data = ByteData.view(arr);
   // print('to int32 ${data.getInt32(idx, Endian.little)}');
  return data.getInt32(idx, Endian.little);
}