Violation constructor

const Violation({
  1. required String ruleId,
  2. required String message,
  3. required SourceRange location,
  4. required RuleSeverity severity,
  5. String? suggestion,
  6. String? sourceCode,
})

Implementation

const Violation({
  required this.ruleId,
  required this.message,
  required this.location,
  required this.severity,
  this.suggestion,
  this.sourceCode,
});