addInt8 method

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

Add the field with the given 8-bit signed integer value. The field is not added if the value is equal to def.

Implementation

void addInt8(int field, int? value, [int? def]) {
  assert(_inVTable);
  if (value != null && value != def) {
    _prepare(_sizeofInt8, 1);
    _trackField(field);
    _setInt8AtTail(_tail, value);
  }
}