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