findDictEntity method

Future<DictEntity?> findDictEntity(
  1. String groupCode,
  2. String? value, {
  3. bool useCache = true,
  4. String systemDic = "1",
})

查找字典实体 根据字典分组代码和值查找对应的字典实体

Implementation

Future<DictEntity?> findDictEntity(String groupCode, String? value,
    {bool useCache = true, String systemDic = "1"}) async {
  if (value == null) {
    return null;
  }
  var dictList = await getDictList(groupCode,
      useCache: useCache, systemDic: systemDic, onlyEnable: false);
  return _findInternal(dictList, value);
}