getChildren method
An optional list of elements that are children of the current element
Implementation
@override
List<Indexable> getChildren() {
if (appendices != null) {
return List.of([chapters, appendices!]);
} else {
return [chapters];
}
}