onItemExpandToggle property
Called when an item's expand state is toggled.
The item and its future expand state are passed to the callback. The callback is executed before the item's expand state actually changes.
This callback is executed before the item's own TreeViewItem.onExpandToggle-callback.
Implementation
final TreeViewItemOnExpandToggle? onItemExpandToggle;