OrgEntitlementsFamily class final

Per-organization entitlements — what does THIS org's plan unlock, regardless of which orgs the caller also belongs to.

Returns a lightweight wrapper around the org_entitlements() Postgres function. Screens gated by org-scoped features (SSO, webhooks, learning paths, etc.) should watch this provider for the specific orgId they're displaying, NOT currentEntitlements, to avoid a multi-org edge case where a user who belongs to an enterprise org on the side incorrectly sees their trial org as unlocked.

Inheritance

Properties

dependencies → Iterable<ProviderOrFamily>?
The list of providers that this provider potentially depends on.
finalinherited
from → Family
The family that this provider/family depends on.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isAutoDispose → bool
Whether the state associated to this provider should be disposed automatically when the provider stops being listened.
finalinherited
name → String?
A custom label for providers.
finalinherited
origin → Family
The provider that is overridden.
no setterinherited
retry → Retry?
The retry strategy to use when a provider fails.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(String orgId) → OrgEntitlementsProvider
Per-organization entitlements — what does THIS org's plan unlock, regardless of which orgs the caller also belongs to.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overrideWith(FutureOr<OrgEntitlement> create(Ref ref, String arg)) → Override
Override the provider with a new initialization function.
inherited
toString() → String
A string representation of this object.

Operators

operator ==(Object other) → bool
The equality operator.
inherited