Issue constructor

const Issue({
  1. required String ruleId,
  2. required Uri documentation,
  3. required SourceSpan location,
  4. required Severity severity,
  5. required String message,
  6. String? verboseMessage,
  7. Replacement? suggestion,
})

Initialize a newly created Issue.

The issue is associated with the given location. The issue will have the given ruleId, documentation, severity and message they will be used to classify and navigate issues in IDE or in reporters. If verboseMessage or suggestion are provided, they will be used to complete and improve the information for the end user.

Implementation

const Issue({
  required this.ruleId,
  required this.documentation,
  required this.location,
  required this.severity,
  required this.message,
  this.verboseMessage,
  this.suggestion,
});