putFloat64 method

void putFloat64(
  1. double value, {
  2. Endian? endian,
})

Write an Float64 into the buffer.

Implementation

void putFloat64(double value, {Endian? endian}) {
  assert(!_isDone);
  _alignTo(8);
  _eightBytes.setFloat64(0, value, endian ?? Endian.host);
  _addAll(_eightBytesAsList);
}