SignalResult class

The outcome of a single RiskSignal evaluation.

Constructors

SignalResult({required String signalId, required double risk, required String reason, String? detail, bool didFail = false})
Creates a SignalResult.
const

Properties

detail String?
Optional extended detail shown in verbose mode.
final
didFail bool
true when the signal threw an exception and the result is synthetic.
final
hashCode int
The hash code for this object.
no setterinherited
reason String
Short human-readable explanation shown in CLI output.
final
risk double
Normalised risk score in the range 0.0, 1.0.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signalId String
The SignalIds constant that identifies which signal produced this result.
final

Methods

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

Operators

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