The expand/collapse handler for a node. Passes the node key and the expansion state.
final Function(String, bool)? onExpansionChanged;