pathDownload method
Implementation
Future<Directory?> pathDownload(String typeFile) async {
final String? pathDownload = await _channel.invokeMethod('getDownloadsDirectory', { 'typeFile' : typeFile});
return pathDownload!= null? Directory(pathDownload):null;
}