getTitle method
The title with which to refer to the element as
Implementation
@override
String getTitle() {
if (headings.isEmpty) {
toHtml(); // Hack to force `CollectHeadersForIndexable` to run.
}
return NestedIndexable.from(headings).self.getTitle();
}