FlagneticContext class final

Who a flag is evaluated for: units identify the subjects experiments bucket by, attributes feed targeting.

A unit ID names a unit type (user, anonymous, device); keep the anonymous unit beside the user unit after sign-in so that an experiment started before sign-up keeps its assignment. An attribute value is a string, number, boolean, a list of those, or a date as an RFC 3339 string.

Constructors

FlagneticContext({Map<String, String> units = const {}, Map<String, Object?> attributes = const {}})
A context of units and attributes.
const

Properties

attributes → Map<String, Object?>
Attribute values by attribute key.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
units → Map<String, String>
Unit IDs by unit type.
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