closeDatabase method

Future<void> closeDatabase()

Implementation

Future<void> closeDatabase() async {
  if (_dbMap != null && _dbMap![_dbModel!.databaseName!] != null) {
    await _dbMap![_dbModel!.databaseName!]!.close();
    _dbMap![_dbModel!.databaseName!] = null;
  }
}