maybeOf static method

ZenithTenantScope? maybeOf(
  1. BuildContext context
)

Retrieves the nearest ZenithTenantScope from context, or null if none exists.

Implementation

static ZenithTenantScope? maybeOf(BuildContext context) {
  return context.getInheritedWidgetOfExactType<ZenithScopeProvider>()?.scope;
}