getUserPublicProfile method

Future<UserPublicProfile> getUserPublicProfile({
  1. required String username,
})

Implementation

Future<UserPublicProfile> getUserPublicProfile({required String username}) async {
  final data = await makeGraphQLRequest(getGraphQLPayloadUserPublicProfile(username: username));
  return UserPublicProfile.fromJson(data['data']['matchedUser']);
}