getOrCreateScope method

ZenithTenantScope getOrCreateScope(
  1. String id
)

Returns the existing scope for id, or creates a new ZenithTenantScope.

Implementation

ZenithTenantScope getOrCreateScope(String id) {
  return _scopes.putIfAbsent(id, () => ZenithTenantScope(id));
}