bytesFromDouble64 static method
Convert a 64 bit double number
to its int representation.
Implementation
static List<int> bytesFromDouble64(double number,
{Endian endian = Endian.big, bool doSigned = false}) {
dynamic tmp = doSigned
? Int8List.fromList([0, 0, 0, 0, 0, 0, 0, 0])
: Uint8List.fromList([0, 0, 0, 0, 0, 0, 0, 0]);
ByteData bdata = ByteData.view(tmp.buffer);
bdata.setFloat64(0, number, endian);
return tmp;
}