toHtml method

  1. @override
String toHtml()
override

Returns an HTML representation of the element

Implementation

@override
String toHtml() {
  return '<section id="${getId()}">'
      '${heading.toHtml()}'
      '${chapters.map((e) => e.toHtml()).join()}'
      '</section>';
}