addInt16 method

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

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

Implementation

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