DiagnosisResult class
The fully evaluated diagnosis for a single dependency.
Constructors
-
DiagnosisResult({required String packageName, required Version currentVersion, required Version? latestVersion, required double riskScore, required RiskLevel riskLevel, required List<
SignalResult> signals, required List<String> recommendations, List<String> suggestedAlternatives = const [], required PackageVerification verification, required RepoHealth? repoHealth, required bool isFromCache}) -
Creates a DiagnosisResult.
const
Properties
- currentVersion → Version
-
The version currently in use.
final
-
failedSignals
→ List<
SignalResult> -
Signals that threw an exception during evaluation.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFromCache → bool
-
truewhen metadata was served from cache rather than the network.final - latestVersion → Version?
-
The latest available version (stable preferred).
final
- packageName → String
-
The package name.
final
-
recommendations
→ List<
String> -
Ordered list of human-readable action items.
final
- repoHealth → RepoHealth?
-
Repository health, if it could be fetched.
final
- riskLevel → RiskLevel
-
Tier derived from riskScore.
final
- riskScore → double
-
Weighted-average risk score in
0, 100.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
signals
→ List<
SignalResult> -
All signal results, sorted by descending signal weight.
final
-
suggestedAlternatives
→ List<
String> -
Healthier alternatives for high-risk packages.
final
- verification → PackageVerification
-
Publisher verification and Flutter Favourite status.
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