Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Null checks
  • Loading branch information
yash1200 committed Jan 29, 2021
commit e2dfbba68f46b439100f30bcd0664c2ff90bb70c
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ class PathProviderLinux extends PathProviderPlatform {

@override
Future<String?> getApplicationDocumentsPath() {
return Future.value(xdg.getUserDirectory('DOCUMENTS').path);
return Future.value(xdg.getUserDirectory('DOCUMENTS')?.path);
}

@override
Future<String?> getDownloadsPath() {
return Future.value(xdg.getUserDirectory('DOWNLOAD').path);
return Future.value(xdg.getUserDirectory('DOWNLOAD')?.path);
}
}