putDouble method

void putDouble(
  1. double num
)

Writes eight bytes containing the given double value, in little-endian order.

@param d The double value to be written

Implementation

void putDouble(double num) {
  var float64List = Float64List.fromList([num]);
  var bytes = float64List.buffer.asUint8List();
  putBytes(bytes);
}