OkfSpecRuleDescriptor class final
Read-only metadata describing one fixed OKF Spec rule.
Descriptors contain no executable function and cannot alter validation.
Constructors
- OkfSpecRuleDescriptor({required OkfFindingId id, required String prose, required OkfFindingSeverity defaultSeverity, required String specReference})
-
Creates immutable rule metadata.
const
Properties
- defaultSeverity → OkfFindingSeverity
-
Severity emitted when the condition is found.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → OkfFindingId
-
Stable
okf/<code>finding ID.final - prose → String
-
Human-readable statement of the condition checked.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- specReference → String
-
Clause or tolerant-reader guidance in the pinned OKF revision.
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