getUserName function

String getUserName(
  1. User user
)

Returns user name as joined firstName and lastName.

Implementation

String getUserName(types.User user) =>
    '${user.firstName ?? ''} ${user.lastName ?? ''}'.trim();