getInitials method

String getInitials()

Get the initials of the user

Implementation

String getInitials() {
  return (user.firstName == null || user.firstName!.isEmpty
          ? ''
          : user.firstName![0]) +
      (user.lastName == null || user.lastName!.isEmpty
          ? ''
          : user.lastName![0]);
}