tableFrame function

String tableFrame(
  1. List<List<String>> rows
)

A graphic frame holding an a:tbl of rows of cell text (not XML-escaped).

Implementation

String tableFrame(List<List<String>> rows) =>
    '<p:graphicFrame><a:graphic><a:graphicData><a:tbl>'
    '${[
      for (final row in rows) '<a:tr>${[for (final cell in row) '<a:tc><a:txBody><a:p><a:r><a:t>$cell</a:t></a:r></a:p></a:txBody></a:tc>'].join()}</a:tr>',
    ].join()}'
    '</a:tbl></a:graphicData></a:graphic></p:graphicFrame>';