LDKind enum Null safety

Enumerated type defining the possible reasons for a flag evaluation result, used in LDEvaluationReason.

Constants

ERROR → const LDKind

Indicates that the flag could not be evaluated, e.g. because it does not exist or due to an unexpected error.

In this case the result value will be the default value that the caller passed to the client. See the LDErrorKind for the defined error cases which can be retrieved from LDEvaluationReason.errorKind.

const LDKind(5)
FALLTHROUGH → const LDKind

Indicates that the flag was on but the user did not match any targets or rules, resulting in the fallback value.

const LDKind(1)
OFF → const LDKind

Indicates that the flag was off and therefore returned its configured off value.

const LDKind(0)
PREREQUISITE_FAILED → const LDKind

Indicates that the flag was considered off because it had at least one prerequisite flag that was off or did not return the desired variation.

const LDKind(4)
RULE_MATCH → const LDKind

Indicates that the user matched one of the flag's rules.

const LDKind(3)
TARGET_MATCH → const LDKind

Indicates that the user key was specifically targeted for this flag.

const LDKind(2)
UNKNOWN → const LDKind

Indicates that LaunchDarkly provided an LDKind value that is not supported by this version of the SDK.

const LDKind(6)
values → const List<LDKind>

A constant List of the values in this enum, in order of their declaration.

const List<LDKind>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited