handleDeleteDatabase method
Handle delete database.
Implementation
Future<void> handleDeleteDatabase() async {
var path = getPath();
var singleInstanceDatabase = ffiSingleInstanceDbs[path];
if (singleInstanceDatabase != null) {
singleInstanceDatabase.close();
ffiSingleInstanceDbs.remove(path);
}
// Ignore failure
try {
await File(path!).delete();
} catch (_) {}
}