titleShape function

String titleShape(
  1. String text
)

A title-placeholder shape (p:sp with type="title") holding text; text is inserted as-is, not XML-escaped.

Implementation

String titleShape(String text) =>
    '<p:sp><p:nvSpPr><p:cNvPr id="2" name="Title"/><p:cNvSpPr/><p:nvPr><p:ph type="title"/></p:nvPr></p:nvSpPr>'
    '<p:txBody><a:p><a:r><a:t>$text</a:t></a:r></a:p></p:txBody></p:sp>';