cloneEmpty method
Returns a blank space cell with the same style/link/drawable metadata.
This avoids cloning pooled grapheme content when wide-cell overwrite semantics only need a cleared replacement.
Implementation
Cell cloneEmpty() {
if (_linkId != 0) {
_linkRegistry.retain(_linkId);
}
return Cell._packed(
style: _style,
link: _link,
width: 1,
contentKind: _CellContentKind.space,
contentValue: 0,
styleId: _styleId,
linkId: _linkId,
drawable: drawable,
);
}