outline property

List<MdcOutlineEntry> get outline

Returns the document headings as an immutable hierarchy.

Heading IDs use the same rules as withHeadingIds, even when this document has not yet been transformed. A heading becomes a child of the nearest preceding heading with a lower level.

Implementation

List<MdcOutlineEntry> get outline => _indexHeadings(this).outline;