Violation class

Represents a violation of a style rule.

Constructors

Violation({required String ruleId, required String message, required SourceRange location, required RuleSeverity severity, String? suggestion, String? sourceCode})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
location SourceRange
Location of the violation in source code.
final
message String
Human-readable message describing the violation.
final
ruleId String
The rule that was violated.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity RuleSeverity
Severity of this violation.
final
sourceCode String?
Optional code that triggered the violation.
final
suggestion String?
Optional suggestion for fixing the violation.
final

Methods

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

Operators

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