of static method
Accesses the DirectoryTreeStateNotifier in the widget tree.
Implementation
static DirectoryTreeStateNotifier of(BuildContext context) {
final provider = context
.dependOnInheritedWidgetOfExactType<DirectoryTreeStateProvider>();
assert(provider != null, 'No DirectoryTreeStateProvider found in context');
return provider!.notifier!;
}