closeDB method
Closes the current application database (if any).
Implementation
Future<void> closeDB() async {
final Future<OpenedDatabase>? opening = _opening;
_opening = null;
_knownTables.clear();
_fileKeyCache = null;
if (opening == null) return;
try {
await (await opening).close();
} catch (_) {
// An opening that failed has nothing to close.
}
}