writeFloat64 method Null safety

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

Writes a float64 d into the buffer

  • d: The value to write
  • endian: The endianess, Endian.big by default

Implementation

void writeFloat64(double d, [Endian endian = Endian.big]) {
  _ensureSize(float64Size);
  _scratchData!.setFloat64(_scratchOffset, d, endian);
  _scratchOffset += float64Size;
}