OrgSection class
An Org section. May have nested sections, like
* TODO [#A] COMMENT Title :tag1:tag2:
content
** Sub section
more content
Constructors
-
OrgSection(OrgHeadline headline, OrgContent? content, [Iterable<
OrgSection> ? sections])
Properties
-
children
→ List<
OrgNode> -
Leading content, if present, followed by sections
no setteroverride
- content → OrgContent?
-
Leading content
finalinherited
-
customIds
→ List<
String> -
Get the CUSTOM_ID properties from this section's PROPERTIES drawer, if
any.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- headline → OrgHeadline
-
final
-
ids
→ List<
String> -
Get the ID properties from this section's PROPERTIES drawer, if any.
no setter
- isEmpty → bool
-
A section may be empty if it has no content or sub-sections
no setter
- level → int
-
The "level" (depth) of this node in the tree; corresponds to the number of
'*' characters in the section heading
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sections
→ List<
OrgSection> -
Sections contained within this tree. These are also iterated by children.
finalinherited
Methods
-
contains(
Pattern pattern, {bool includeChildren = true}) → bool -
Return true if this node or any of its children recursively match the
supplied
pattern
override -
copyWith(
{OrgHeadline? headline, OrgContent? content, Iterable< OrgSection> ? sections}) → OrgSection -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
visit<
T extends OrgNode> (bool visitor(T)) → bool -
Walk AST with
visitor
. Specify a typeT
to only visit nodes of that type. The visitor function must returntrue
to continue iterating, orfalse
to stop.inherited -
visitSections(
bool visitor(OrgSection)) → bool -
Walk only section nodes of the AST with
visitor
. More efficient than calling visit. The visitor function must returntrue
to continue iterating, orfalse
to stop.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited