ignoreForThisLine method
Future<SourceChange>
ignoreForThisLine({
- required ResolvedUnitResult resolvedUnitResult,
- required CandiesLintsIgnoreInfo ignore,
- required Location location,
- required String code,
Implementation
Future<SourceChange> ignoreForThisLine({
required ResolvedUnitResult resolvedUnitResult,
required CandiesLintsIgnoreInfo ignore,
required Location location,
required String code,
}) {
return getDartFix(
resolvedUnitResult: resolvedUnitResult,
message: 'Ignore \'$code\' for this line',
buildDartFileEdit: (DartFileEditBuilder dartFileEditBuilder) {
ignore.fixIgnoreForThisLine(
code,
location,
dartFileEditBuilder: dartFileEditBuilder,
);
},
);
}