getUserPhoto method
Implementation
Future<Response?> getUserPhoto({
required DioClient dioClient,
required User user,
Json? getUserPhotoExtra,
}) async {
try {
if (user.pictureUrl == null) return null;
final response = await dioClient.get<List<int>>(
user.pictureUrl!,
options: Options(
responseType: ResponseType.bytes,
extra: getUserPhotoExtra,
),
);
return response;
} catch (e) {
return null;
}
}