LintResult constructor

const LintResult({
  1. required RuleCode code,
  2. @Assert('span.sourceUrl != null') @JsonKey(toJson: sourceSpanToJson, fromJson: sourceSpanFromJson) required SourceSpan span,
  3. required String message,
  4. required LintSeverity severity,
  5. String? correction,
  6. @JsonKey(ignore: true) EditsComputer? editsComputer,
})

Implementation

const factory LintResult(
        {required final RuleCode code,
        @Assert('span.sourceUrl != null')
        @JsonKey(toJson: sourceSpanToJson, fromJson: sourceSpanFromJson)
        required final SourceSpan span,
        required final String message,
        required final LintSeverity severity,
        final String? correction,
        @JsonKey(ignore: true) final EditsComputer? editsComputer}) =
    _$LintResult;