mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-19 02:43:50 +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 {
|
String? get fullName {
|
||||||
var fullName = '';
|
var fullName = '';
|
||||||
|
|
||||||
if (firstName != null) {
|
if (firstName != null && lastName != null) {
|
||||||
|
fullName += '$firstName $lastName';
|
||||||
|
} else if (firstName != null) {
|
||||||
fullName += firstName!;
|
fullName += firstName!;
|
||||||
}
|
} else if (lastName != null) {
|
||||||
|
fullName += lastName!;
|
||||||
if (lastName != null) {
|
|
||||||
fullName += ' $lastName';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return fullName == '' ? null : fullName;
|
return fullName == '' ? null : fullName;
|
||||||
|
|
Loading…
Reference in a new issue