addFloat64 method

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

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

Implementation

void addFloat64(int field, double? value, [double? def]) {
  assert(_inVTable);
  if (value != null && value != def) {
    _prepare(_sizeofFloat64, 1);
    _trackField(field);
    _setFloat64AtTail(_tail, value);
  }
}