pathDownload method

Future<Directory?> pathDownload(
  1. String typeFile
)

Implementation

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