getDisplayNameByV2TimGroupMemberInfo static method

String getDisplayNameByV2TimGroupMemberInfo(
  1. V2TimGroupMemberFullInfo? info
)

Implementation

static String getDisplayNameByV2TimGroupMemberInfo(
  V2TimGroupMemberFullInfo? info,
) {
  String res = "";
  if (info == null) {
    return "";
  }

  if (checkString(info.userID) == null) {
    return res;
  }
  if (checkString(info.friendRemark) != null) {
    return info.friendRemark!;
  }
  if (checkString(info.nameCard) != null) {
    return info.nameCard!;
  }
  if (checkString(info.nickName) != null) {
    return info.nickName!;
  }
  return info.userID;
}