getChildren method
An optional list of elements that are children of the current element
Implementation
@override
List<Indexable> getChildren() {
if (headings.isEmpty) {
toHtml(); // Hack to force `CollectHeadersForIndexable` to run.
}
if (headings.isEmpty || headings.length == 1) {
return [];
} else {
return NestedIndexable.from(headings).getChildren();
}
}