downloadsDirectory property

Future<Directory?> downloadsDirectory

Implementation

static Future<Directory?> get downloadsDirectory async {
  final String? path = await _channel.invokeMethod('getDownloadsDirectory');
  if (path == null) {
    return null;
  }
  return Directory(path);
}