getName method
Implementation
String getName() {
if (friend != null && (friend!.alias?.isNotEmpty == true)) {
return friend!.alias!;
} else if (user.nick?.isNotEmpty == true) {
return user.nick!;
} else {
return user.userId!;
}
}