Bon checkpoint + refactoring
This commit is contained in:
@@ -23,7 +23,7 @@ class FriendsCircle extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
// Combine firstName et lastName ou utilise "Ami inconnu" par défaut.
|
||||
String displayName = [friend.firstName, friend.lastName]
|
||||
.where((namePart) => namePart != null && namePart.isNotEmpty)
|
||||
.where((namePart) => namePart.isNotEmpty)
|
||||
.join(" ")
|
||||
.trim();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user