of static method
Retrieves the nearest TabController from the widget tree.
Implementation
static TabController? of(BuildContext context) {
final DefaultTabController? result =
context.dependOnInheritedWidgetOfExactType<DefaultTabController>();
return result?.controller;
}