logReplaced function

void logReplaced(
  1. String targetDescription,
  2. String filePath, {
  3. int? matchCount,
})

Implementation

void logReplaced(String targetDescription, String filePath, {int? matchCount}) {
  final suffix = matchCount == null ? "" : " (matches: $matchCount)";
  stdout.writeln(
    "[REPLACED] $targetDescription in $filePath$suffix",
  );
}