getChildren method

  1. @override
List<Indexable> getChildren()
override

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];
  }
}