getUser method

  1. @override
Future<User?> getUser(
  1. String userId
)
override

Get a User by id.

Each user is uniquely identified by a user id. The user id is a UUID. This userId is the preferred method to retrieve one specific user.

Parameters:

  • String userId (required): The UUID that identifies the user uniquely

Implementation

@override
Future<User?> getUser(String userId) async => (await api.baseUserApi.getUser(userId))?.toUser();