LDErrorKind enum Null safety

Enumerated type defining the defined error cases for an LDEvaluationReason with the kind LDKind.ERROR.

This field can be retrieved from an LDEvaluationReason with the kind LDKind.ERROR through the LDEvaluationReason.errorKind property.


CLIENT_NOT_READY → const LDErrorKind

Indicates that the caller tried to evaluate a flag before the client had successfully initialized.

const LDErrorKind(0)
EXCEPTION → const LDErrorKind

Indicates that an unexpected exception stopped flag evaluation.

const LDErrorKind(5)
FLAG_NOT_FOUND → const LDErrorKind

Indicates that the caller provided a flag key that did not match any known flag.

const LDErrorKind(1)
MALFORMED_FLAG → const LDErrorKind

Indicates that there was an internal inconsistency in the flag data, e.g. a rule specified a non-existent variation.

const LDErrorKind(2)
UNKNOWN → const LDErrorKind

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

const LDErrorKind(6)

Indicates that the caller passed null for the user parameter, or the user lacked a key.

const LDErrorKind(3)
values → const List<LDErrorKind>

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

const List<LDErrorKind>
WRONG_TYPE → const LDErrorKind

Indicates that the result value was not of the requested type, e.g. you called LDClient.boolVariationDetail but the flag value was an int.

const LDErrorKind(4)


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

The integer index of this enum.

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


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


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