setAtsignToChatWith method
void
setAtsignToChatWith()
Implementation
void setAtsignToChatWith(String? chatWithAtSignFromApp, bool isGroup, String? groupId, List<String>? groupMembers) {
if (isGroup) {
isGroupChat = isGroup;
groupChatId = groupId;
groupChatMembers = groupMembers;
} else {
// ignore: unnecessary_null_comparison
if (chatWithAtSignFromApp != null) {
if (chatWithAtSignFromApp.startsWith('@')) {
chatWithAtSign = chatWithAtSignFromApp;
} else {
chatWithAtSign = '@$chatWithAtSignFromApp';
}
} else {
chatWithAtSign = '';
}
}
}