expansionChangeNotifier property
Notifies listeners when the expansion state of any tree node changes. trigger UI updates or other logic whenever a node in the tree is expanded or collapsed.
Implementation
@override
final ChangeNotifier expansionChangeNotifier = ChangeNotifier();