Called with the new set of expanded indices.
final void Function(Set<int> expanded)? onExpansionChanged;