flutter_janitor 1.0.1
flutter_janitor: ^1.0.1 copied to clipboard
Conservative Flutter cleanup CLI for unused assets and dependencies with reports, backups, and undo.
example/flutter_janitor_example.dart
import 'package:flutter_janitor/flutter_janitor.dart';
Future<void> main() async {
final engine = JanitorEngine();
final writer = ReportWriter();
// Run this example from inside a Flutter project directory.
final result = await engine.scan(
projectRoot: '.',
options: const ScanOptions(format: ReportFormat.text),
);
final report = writer.renderScan(result, format: ReportFormat.text);
print(report);
}