closeDatabaseMini method

bool closeDatabaseMini({
  1. required String key,
})

Implementation

bool closeDatabaseMini({
  required String key,
}) {
  final DatabaseMiniGeneralLibrary? databaseMiniGeneralLibraryOld =
      _stateDbMini[key];
  if (databaseMiniGeneralLibraryOld == null) {
    return true;
  }
  databaseMiniGeneralLibraryOld.close();
  _stateDbMini.remove(key);
  return true;
}