Callback fired when a node is expanded or collapsed.
final void Function(TTreeNode<T> node, bool isExpanded)? onNodeExpanded;