of static method

Implementation

static VRouterScopeData of(BuildContext context) {
  VRouterScopeData? vRouterScope =
      context.dependOnInheritedWidgetOfExactType<VRouterScopeData>();

  if (vRouterScope == null) {
    throw VRouterScopeNotFoundException(
        widgetType: context.widget.runtimeType);
  }

  return vRouterScope;
}