writeFloat32 method

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

Writes a 32-bit floating-point value.

Implementation

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

  final length = this._length;
  _byteData.setFloat32(length, value, endian);
  this._length = length + 4;
}