OrgSection class
A OrgSection contains directly any GreaterElement
or OrgElement
.
Only a OrgHeadline can contain a OrgSection.
As an exception, text before the first headline in the document also belongs to a section.
An introduction.
* A Headline
Some text.
** Sub-Topic 1
has the following structure.
- doc:
- section:
- headline:
- section:
- headline
- Implemented types
- Annotations
-
- @JsonSerializable()
Constructors
- OrgSection({required int contentsBegin, required int contentsEnd, required List children})
-
OrgSection.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
allHeadlines
→ List<
OrgHeadline> -
Returns all headlines, includes the headlines in sub sections.
no setter
-
allSubSections
→ List<
OrgSection> -
no setter
- children → List
-
A list representing the children of a Node.
final
- contentsBegin → int
-
finalinherited
- contentsEnd → int
-
finalinherited
- data ↔ Data?
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- headline → OrgHeadline
-
Returns the headline.
no setter
- position ↔ Position?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
A representation of the variant of a node.
final
Methods
-
getHeadlines(
{bool recursive = false}) → Iterable< OrgHeadline> -
getSubSections(
{dynamic recursive = false}) → Iterable< OrgSection> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited