int doubleToUint64(double value) { var byteData = ByteData(8); byteData.setFloat64(0, value); return byteData.getUint64(0); }