bytesToDouble static method

double bytesToDouble(
  1. List<int> bytes, {
  2. bool littleEndian = true,
})

Implementation

static double bytesToDouble(List<int> bytes, {bool littleEndian = true}) {
  var buffer = ByteData.sublistView(Uint8List.fromList(bytes));
  return buffer.getFloat64(0, littleEndian ? Endian.little : Endian.big);
}