LDEvaluationReason class Null safety

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.
read-onlyinherited
inExperiment bool?
Whether the rule or fallthrough is part of an experiment when kind is LDKind.RULE_MATCH 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.PREREQUISITE_FAILED.
final
ruleId String?
The id of the rule that match the user when kind is LDKind.RULE_MATCH.
final
ruleIndex int?
The index of the rule that match the user when kind is LDKind.RULE_MATCH.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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

Operators

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

Static Methods

error({LDErrorKind errorKind = LDErrorKind.UNKNOWN}) 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.
off() LDEvaluationReason
Returns an LDEvaluationReason with the kind LDKind.OFF.
prerequisiteFailed({required String prerequisiteKey}) LDEvaluationReason
Returns an LDEvaluationReason with the kind LDKind.PREREQUISITE_FAILED and the given prerequisiteKey.
ruleMatch({required int ruleIndex, required String ruleId, bool? inExperiment}) LDEvaluationReason
Returns an LDEvaluationReason with the kind LDKind.RULE_MATCH and the given ruleIndex and ruleId.
targetMatch() LDEvaluationReason
Returns an LDEvaluationReason with the kind LDKind.TARGET_MATCH.
unknown() LDEvaluationReason
Returns an LDEvaluationReason with the kind LDKind.UNKNOWN.