File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ class BaseRepository {
1515
1616 Future <void > dropDatabase () async {
1717 final databasePath = await _getDatabasePath ();
18+ final fileType = await FileSystemEntity .type (databasePath);
19+
20+ if (fileType == FileSystemEntityType .notFound) {
21+ return ;
22+ }
23+
1824 final file = File (databasePath);
1925
2026 await file.delete ();
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ description: A new Flutter application.
1111# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
1212# Read more about iOS versioning at
1313# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14- version : 1.4.0 +10
14+ version : 1.4.1 +10
1515
1616environment :
1717 sdk : " >=2.2.0 <3.0.0"
You can’t perform that action at this time.
0 commit comments