print_remover library

A tool to remove all print() and debugPrint() statements from Dart files.

Use PrintRemover to scan a directory and strip out print statements:

import 'package:print_remover/print_remover.dart';

void main() async {
  final remover = PrintRemover(path: 'lib', dryRun: true);
  final count = await remover.start();
  print('Found $count print statements');
}

Classes

PrintRemover
Removes print() and debugPrint() statements from Dart files.