readFloat64 method

double readFloat64()

Read double.

Implementation

double readFloat64() {
  final b = Uint8List.fromList(buffer.skip(_position).take(8).toList());
  final x = b.buffer.asFloat64List(0, 1);

  _position += 8;
  return x.first;
}