Change from slow async exists() to faster existsSync()

This commit is contained in:
Anmol Gupta 2018-07-03 12:51:07 +05:30
parent d5c73438c0
commit 46b7deb7d4
1 changed files with 1 additions and 1 deletions

View File

@ -38,6 +38,6 @@ class FileStorage {
Future<bool> exists() async {
final file = await _getLocalFile();
return file.exists();
return file.existsSync();
}
}