saveToDownloads method
Save file to downloads directory
Implementation
@override
Future<String?> saveToDownloads(String sourcePath, String fileName) async {
try {
final result = await _channel.invokeMethod('saveToDownloads', {
'sourcePath': sourcePath,
'fileName': fileName,
});
return result as String?;
} catch (e) {
debugPrint('Save to downloads error: $e');
return null;
}
}