ignoreForThisLine method

Future<SourceChange> ignoreForThisLine({
  1. required ResolvedUnitResult resolvedUnitResult,
  2. required CandiesLintsIgnoreInfo ignore,
  3. required Location location,
  4. 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,
      );
    },
  );
}