toCell method

Cell toCell()

Rebuilds this metadata as a UV cell.

Implementation

Cell toCell() {
  if (hasDrawable) {
    throw UnsupportedError(
      'native frame contains a drawable without its payload',
    );
  }
  return Cell(
    content: isZero || isEmpty ? (isEmpty ? ' ' : '') : content,
    width: width,
    style: style.toUvStyle(),
    link: Link(url: link.url, params: link.params),
    diffOption: diffOption,
  );
}