closeDB method

Future<void> closeDB()

Closes the current application database (if any).

Implementation

Future<void> closeDB() async {
  if (_db != null) {
    await _db!.close();
    _db = null;
  }
}