addFloat32 method

void addFloat32(
  1. int field,
  2. double? value, [
  3. double? def
])

Add the field with the given 32-bit float value. The field is not added if the value is equal to def.

Implementation

void addFloat32(int field, double? value, [double? def]) {
  _ensureCurrentVTable();
  if (value != null && value != def) {
    _prepare(_sizeofFloat32, 1);
    _trackField(field);
    _setFloat32AtTail(_buf, _tail, value);
  }
}