findScope method

ZenScope findScope()

Finds the nearest ZenScope above this context.

This method will look up the widget tree and return the ZenScope provided by the nearest ZenScopeWidget ancestor.

Throws an exception if no ZenScope is found.

Implementation

ZenScope findScope() {
  return ZenScopeWidget.of(this);
}