MarkdownSection class

A single section parsed from a Markdown document.

Constructors

MarkdownSection({required String heading, required int level, required String content, List<MarkdownSection> children = const []})
const

Properties

children List<MarkdownSection>
Nested sub-sections.
final
content String
The body text that belongs to this section (everything between this heading and the next heading at the same or higher level).
final
hashCode int
The hash code for this object.
no setterinherited
heading String
The heading text (without the leading # characters).
final
level int
The heading level (1 for #, 2 for ##, etc.).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited