LDContext class Null safety
A collection of attributes that can be referenced in flag evaluations and analytics events. A LDContext may contain information about a single context or multiple contexts differentiated by the "kind" attribute.
Besides the kind and key (required), LDContext supports built in attributes (optional to use) and also custom attributes.
LDContext is the newer replacement for the previous, less flexible LDUser
type.
For a more complete description of context attributes and how they can be referenced in feature flag rules, see the reference guide on setting user attributes and targeting users.
- Available Extensions
Properties
-
attributesByKind
→ Map<
String, LDContextAttributes> -
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited