rootOf static method

RootHyperController rootOf(
  1. BuildContext context
)

Implementation

static RootHyperController rootOf(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<InheritedHyperTree>()!
      .router
      .rootController;
}