writeFloat method

void writeFloat(
  1. double value
)

Generalised float encoder, picks the smallest encoding it can. If you want a specific precision use the more specialised methods. Note this can lead to encodings you may not expect in corner cases, if you want specific sized encodings don't use this.

Implementation

void writeFloat(double value) {
  _writeFloat(value);
  _builderHookImpl(false);
}