getName method
Implementation
String getName(String currentUserId){
customPrint('getting name ${currentUserId}.... ${isGroup}');
if(isGroup){
return groupChatDetails?.groupName??'Group';
}else{
customPrint('The users are ${users}');
var user = users.firstWhere((element) => element!=currentUserId);
return getUserData(user).name;
}
}