of<T> static method

TreeController<T>? of<T>(
  1. BuildContext context
)

Implementation

static TreeController<T>? of<T>(BuildContext context) {
  final scope = context.dependOnInheritedWidgetOfExactType<TreeScope<T>>();
  return scope?.controller;
}