AttributeValue class sealed
The value of an attribute your targeting rules match against: a string, number, bool, list of strings, or explicit null.
Create one with a factory constructor, for example
const AttributeValue.string('pro'), and pass it in the attribute map of
CoproductClient.identify or another identity call
Constructors
- AttributeValue.bool(bool value)
-
A boolean attribute
constfactory
- AttributeValue.nullValue()
-
An explicit null attribute value. This is distinct from leaving the key
out of a map, whose effect depends on the call, and from removing the key
with
CoproductClient.removeAttributesconstfactory - AttributeValue.number(double value)
-
A numeric attribute. The value is stored as a double, so an integer
identifier larger than 2^53 loses precision. Pass such an identifier as a
string with AttributeValue.string instead.
constfactory
- AttributeValue.string(String value)
-
A string attribute
constfactory
-
AttributeValue.stringList(Iterable<
String> values) -
A list-of-strings attribute. This is the one factory that cannot be
const, because it copiesvalues, so changing your list later does not change an attribute you already setfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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