TerminalNativeCell.fromCell constructor

TerminalNativeCell.fromCell(
  1. Cell cell
)

Builds a snapshot from a UV cell.

Implementation

factory TerminalNativeCell.fromCell(Cell cell) {
  return TerminalNativeCell(
    content: cell.content,
    width: cell.width,
    style: TerminalNativeStyle.fromStyle(cell.style),
    link: TerminalNativeLink.fromLink(cell.link),
    isZero: cell.isZero,
    isEmpty: cell.isEmpty,
    hasDrawable: cell.drawable != null,
    packed: List<int>.unmodifiable(cell.packed.words),
  );
}