DVFlagContext class

Everything an answer may depend on.

Identity, tenant, organization role, app version, platform, locale, and any attributes the application declares. Nothing ambient is read during evaluation: the same context and the same rules give the same answer on a phone and in a backend function.

Constructors

DVFlagContext({String? userId, String? tenantId, String? deviceId, String? organizationRole, String? appVersion, String? platform, String? locale, Map<String, Object?> attributes = const <String, Object?>{}})
const

Properties

appVersion → String?
final
attributes → Map<String, Object?>
final
deviceId → String?
final
fingerprint → String
A stable string for "the same evaluation context", used to record an exposure once per context rather than once per read.
no setter
hashCode → int
The hash code for this object.
no setterinherited
locale → String?
final
organizationRole → String?
final
platform → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tenantId → String?
final
userId → String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subjectFor(DVFlagSubject subject) → String?
The identifier a rollout by subject buckets on, or null when this context has none.
toString() → String
A string representation of this object.
inherited

Operators

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