of method
The closest instance of this class that encloses the given context.
Typical usage:
TabController controller = DefaultTabBarController.of(context);
Implementation
static TabController of(BuildContext context) {
final _TabControllerScope scope = context.inheritFromWidgetOfExactType(_TabControllerScope);
return scope?.controller;
}