cleanupIncompleteDownloads static method

Future<void> cleanupIncompleteDownloads()

Clean up incomplete or corrupted downloads

Implementation

static Future<void> cleanupIncompleteDownloads() async {
  try {
    await _channel.invokeMethod('cleanupIncompleteDownloads');
  } on PlatformException catch (e) {
    throw Exception('Failed to cleanup downloads: ${e.message}');
  }
}