addOffset method

void addOffset(
  1. int field,
  2. int? offset
)

Add the field referencing an object with the given offset.

Implementation

void addOffset(int field, int? offset) {
  assert(_inVTable);
  if (offset != null) {
    _prepare(_sizeofUint32, 1);
    _trackField(field);
    _setUint32AtTail(_tail, _tail - offset);
  }
}