writeFloat64 method

void writeFloat64(
  1. double value,
  2. [Endian endian = Endian.big]
)

Writes a 64-bit floating-point value.

Implementation

void writeFloat64(double value, [Endian endian = Endian.big]) {
  ensureAvailableLength(8);

  final length = this._length;
  _byteData.setFloat64(length, value, endian);
  this._length = length + 8;
}