getRelationByUserID static method

dynamic getRelationByUserID(
  1. String userID,
  2. List successUserIDList
)

Implementation

static getRelationByUserID(String userID, List<dynamic> successUserIDList) {
  for (var i = 0; i < successUserIDList.length; i++) {
    var item = jsToMap(successUserIDList[i]);
    if (item['userID'] == userID) {
      return FriendTypeWeb.convertFromWebCheckFriendType(item['relation']);
    }
  }
}