fullName property

String? fullName

Implementation

String? get fullName {
  var fullName = '';

  if (firstName != null && lastName != null) {
    fullName += '$firstName $lastName';
  } else if (firstName != null) {
    fullName += firstName!;
  } else if (lastName != null) {
    fullName += lastName!;
  }

  return fullName == '' ? null : fullName;
}