getAvatarDark method
Get the dark avatar.
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.
Parameters:
userId
ID of the user.size
Size of the avatar.
Status codes:
- 200: Avatar returned
- 404: Avatar not found
See:
- getAvatarDarkRaw for an experimental operation that returns a DynamiteRawResponse that can be serialized.
Implementation
Future<DynamiteResponse<Uint8List, AvatarAvatarGetAvatarDarkHeaders>> getAvatarDark({
required String userId,
required int size,
}) async {
final rawResponse = getAvatarDarkRaw(
userId: userId,
size: size,
);
return rawResponse.future;
}