toBytes method

Uint8List toBytes([
  1. Endian endian = Endian.big
])

Converts this value to binary form.

Implementation

Uint8List toBytes([Endian endian = Endian.big]) {
  final data = ByteData(8);
  data.setFloat64(0, this, endian);
  return data.buffer.asUint8List();
}