zenScopeRequired property

ZenScope get zenScopeRequired

Gets the current ZenScope from the widget tree (throws if not found)

Implementation

ZenScope get zenScopeRequired {
  final scope = zenScope;
  if (scope == null) {
    throw ZenScopeNotFoundException(widgetType: 'ZenScopeWidget');
  }
  return scope;
}