LintResult constructor
const
LintResult({
- required RuleCode code,
- @Assert('span.sourceUrl != null') @JsonKey(toJson: sourceSpanToJson, fromJson: sourceSpanFromJson) required SourceSpan span,
- required String message,
- required LintSeverity severity,
- String? correction,
- @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;