getNickName method
Implementation
String getNickName() {
String name = nimMessage.fromNickname ?? nimMessage.fromAccount ?? '';
if (name.isEmpty && fromUser != null) {
name = fromUser!.nick ?? '';
}
return name;
}
String getNickName() {
String name = nimMessage.fromNickname ?? nimMessage.fromAccount ?? '';
if (name.isEmpty && fromUser != null) {
name = fromUser!.nick ?? '';
}
return name;
}