visitTableRow method

  1. @override
String visitTableRow(
  1. TableRowNode node
)
override

Implementation

@override
String visitTableRow(TableRowNode node) {
  final tag = node.isHeader ? 'th' : 'td';
  final cells = node.cells
      .map((c) => '<$tag>${c.content.accept(this)}</$tag>')
      .join();
  return '<tr>$cells</tr>';
}