copyEmptyFrom method

void copyEmptyFrom(
  1. Cell other
)

Copies just the style/link/drawable payload from other and clears the content to a plain space cell.

Implementation

void copyEmptyFrom(Cell other) {
  _releaseLink();
  _releasePooledContent();
  _style = other._style;
  _styleId = other._styleId;
  _link = other._link;
  _linkId = other._linkId;
  _width = 1;
  _contentKind = _CellContentKind.space;
  _contentValue = 0;
  drawable = other.drawable;
  if (_linkId != 0) {
    _linkRegistry.retain(_linkId);
    _attachLinkFinalizerIfNeeded();
  }
}