onSelectionChanged property
Callback invoked when node selection changes.
Type: TreeNodeSelectionChanged<T>?
. Called with the affected nodes,
whether multi-select mode is active, and the new selection state.
Implementation
final TreeNodeSelectionChanged<T>? onSelectionChanged;