fullName property
String?
get
fullName
Returns the customer's full name, or null if both first and last name
are unavailable.
Implementation
String? get fullName {
final parts = [firstName, lastName].where((p) => p != null && p.isNotEmpty);
return parts.isEmpty ? null : parts.join(' ');
}