fromBytes static method
Converts bytes to a double value.
bytes
: The bytes to decode.byteOrder
(optional): The byte order for decoding. Defaults to big endian.
Implementation
static double fromBytes(List<int> bytes, {Endian byteOrder = Endian.big}) {
final ByteData byteData = ByteData.sublistView(Uint8List.fromList(bytes));
return byteData.getFloat32(0, byteOrder);
}