closeIfConnected static method
Implementation
static Future<void> closeIfConnected() async {
final db = await _dbFuture;
if (db != null) {
await db.close();
_dbFuture = null;
_lastUsedAt = null;
LOG.printInfo("Database connection closed");
}
}