cleanupScreenshots static method

Future<void> cleanupScreenshots([
  1. String? customPath
])

Clean up all generated screenshots

Implementation

static Future<void> cleanupScreenshots([String? customPath]) async {
  final outputDir = Directory(customPath ?? _baseOutputDir);
  if (outputDir.existsSync()) {
    outputDir.deleteSync(recursive: true);
    debugPrint('Cleaned up screenshots directory: ${outputDir.path}');
  }
}