getDownloadsPath method

  1. @override
Future<String?> getDownloadsPath()
override

Path to the directory where downloaded files can be stored. This is typically only relevant on desktop operating systems.

Implementation

@override
Future<String?> getDownloadsPath() async {
  final List<String> paths =
      await _getExternalStoragePaths(type: StorageDirectory.downloads);
  return paths.isEmpty ? null : paths.first;
}