removeUserImage method

Future<UserProfileModel> removeUserImage(
  1. Session session
)

Removes the users uploaded image, replacing it with the default user image.

Implementation

Future<UserProfileModel> removeUserImage(final Session session) async {
  final userId = (await session.authenticated)!.authUserId;

  return UserProfiles.setDefaultUserImage(session, userId);
}