isNameExist method

Future<bool> isNameExist(
  1. String value, {
  2. String name = 'name',
})

Implementation

Future<bool> isNameExist(String value, {String name = 'name'}) async {
  try {
    return await HycopFactory.dataBase!.isNameExist(collectionId, value: value, name: name);
  } catch (e) {
    logger.severe('databaseError $e');
    //throw HycopException(message: 'databaseError', exception: e as Exception);
  }
  return false;
}