writeFloat method

void writeFloat(
  1. double v
)

Writes a four-byte float using the current endian format.

Implementation

void writeFloat(double v) {
  final d = ByteData(4)..setFloat32(0, v, endian);
  _dest.add(d.buffer.asUint8List(d.offsetInBytes, 4));
}