resetForTesting static method
Closes, deletes, and resets the database. For use in tests only.
Implementation
@visibleForTesting
static Future<void> resetForTesting() async {
final db = _database;
_database = null;
await db?.close();
try {
final path = join(await getDatabasesPath(), 'locations.db');
await deleteDatabase(path);
} catch (_) {}
}