LDEvaluationReason class final

Describes the reason that a flag evaluation produced a particular value.

Properties

errorKind LDErrorKind?
The type of the error responsible when the kind is LDKind.error.
final
hashCode int
The hash code for this object.
no setteroverride
inExperiment bool
Whether the rule or fallthrough is part of an experiment when kind is LDKind.ruleMatch or LDKind.fallthrough.
final
kind LDKind
The general category for the reason responsible for the evaluation result.
final
prerequisiteKey String?
The key of the first prerequisite that failed when kind is LDKind.prerequisiteFailed.
final
ruleId String?
The id of the rule that match the user when kind is LDKind.ruleMatch.
final
ruleIndex int?
The index of the rule that match the user when kind is LDKind.ruleMatch.
final
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.
override

Static Methods

error({required LDErrorKind errorKind}) LDEvaluationReason
Returns an LDEvaluationReason with the kind LDKind.error and the given errorKind.
fallthrough({bool? inExperiment}) LDEvaluationReason
Returns an LDEvaluationReason with the kind LDKind.fallthrough.
flagNotFound() LDEvaluationReason
Returns an LDEvaluationReason with the kind LDKind.flagNotFound.
off() LDEvaluationReason
Returns an LDEvaluationReason with the kind LDKind.off.
prerequisiteFailed({required String prerequisiteKey}) LDEvaluationReason
Returns an LDEvaluationReason with the kind LDKind.prerequisiteFailed and the given prerequisiteKey.
ruleMatch({required int ruleIndex, required String ruleId, bool? inExperiment}) LDEvaluationReason
Returns an LDEvaluationReason with the kind LDKind.ruleMatch and the given ruleIndex and ruleId.
targetMatch() LDEvaluationReason
Returns an LDEvaluationReason with the kind LDKind.targetMatch.