mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-18 18:33:49 +02:00
fix
This commit is contained in:
parent
5b8c6db64f
commit
d4e42ac440
1 changed files with 5 additions and 5 deletions
|
@ -18,12 +18,12 @@ class ChatUserModel {
|
|||
String? get fullName {
|
||||
var fullName = '';
|
||||
|
||||
if (firstName != null) {
|
||||
if (firstName != null && lastName != null) {
|
||||
fullName += '$firstName $lastName';
|
||||
} else if (firstName != null) {
|
||||
fullName += firstName!;
|
||||
}
|
||||
|
||||
if (lastName != null) {
|
||||
fullName += ' $lastName';
|
||||
} else if (lastName != null) {
|
||||
fullName += lastName!;
|
||||
}
|
||||
|
||||
return fullName == '' ? null : fullName;
|
||||
|
|
Loading…
Reference in a new issue