LDKind enum

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

Inheritance

Constructors

LDKind(String _value)
const

Values

off → const LDKind

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

const LDKind('OFF')
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('FALLTHROUGH')
targetMatch → const LDKind

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

const LDKind('TARGET_MATCH')
ruleMatch → const LDKind

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

const LDKind('RULE_MATCH')
prerequisiteFailed → 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('PREREQUISITE_FAILED')
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 w which can be retrieved from LDEvaluationReason.errorKind.

const LDKind('ERROR')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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.
override

Operators

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

Static Methods

fromString(String value) LDKind

Constants

values → const List<LDKind>
A constant List of the values in this enum, in order of their declaration.