getScope static method

ScopeManager? getScope(
  1. BuildContext context
)
override

return the ScopeManager which includes the dataContext TODO: have to repeat this function in DataScopeWidget?

Implementation

static ScopeManager? getScope(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<PageGroupWidget>()
      ?.scopeManager;
}