TenantContext class

Contextual representation of a tenant in a multi-tenant or white-label application.

Constructors

TenantContext({required String tenantId, required String name, required String primaryDomain, List<String> customDomains = const [], String defaultLocale = 'en', String defaultCurrency = 'USD', bool enforceHttps = true, Map<String, dynamic> customSettings = const {}})
const

Properties

allAuthorizedHosts → Set<String>
Returns all authorized hostnames for this tenant.
no setter
customDomains → List<String>
final
customSettings → Map<String, dynamic>
final
defaultCurrency → String
final
defaultLocale → String
final
enforceHttps → bool
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
primaryDomain → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tenantId → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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