RiskLevel enum

Five-tier risk classification derived from a package's aggregate score.

Inheritance
Available extensions

Values

healthy → const RiskLevel

Score 0–20: no actionable concerns.

const RiskLevel(label: 'Healthy', range: '0–20')
low → const RiskLevel

Score 21–40: minor issues worth monitoring.

const RiskLevel(label: 'Low Risk', range: '21–40')
warning → const RiskLevel

Score 41–60: attention recommended before the next release.

const RiskLevel(label: 'Warning', range: '41–60')
risky → const RiskLevel

Score 61–80: significant problems — plan remediation soon.

const RiskLevel(label: 'Risky', range: '61–80')
critical → const RiskLevel

Score 81–100: blocking issues — act immediately.

const RiskLevel(label: 'Critical', range: '81–100')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
label String
Human-readable label shown in CLI output and reports.
final
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
range String
Score range this level covers, e.g. '21–40'.
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.
inherited

Operators

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

Static Methods

fromScore(double score) RiskLevel
Maps a numeric score in 0, 100 to the corresponding RiskLevel.

Constants

values → const List<RiskLevel>
A constant List of the values in this enum, in order of their declaration.