ProviderContext class

Context handed to providers: user tier, locale, the resolved variant for the feature when a variant gate is declared, and the operating system the PlatformResolver reported (issue #2066).

Constructors

ProviderContext({String? membershipTier, String? locale, String? variant, String? platform})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
locale → String?
final
membershipTier → String?
final
platform → String?
The host OS as reported by the injected PlatformResolver (e.g. macos, ios, linux) — null when no resolver is wired or it failed. Custom gate handlers read this to scope behavior the gate vocabulary cannot express.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
variant → 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