getAvatarDark method
Returns a dark guest avatar image response.
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:
guestName
The guest name, e.g. "Albert".size
The desired avatar size, e.g. 64 for 64x64px.
Status codes:
- 200: Custom avatar returned
- 201: Avatar returned
- 500
See:
- $getAvatarDark_Request for the request send by this method.
- $getAvatarDark_Serializer for a converter to parse the
Response
from an executed request.
Implementation
Future<_i1.DynamiteResponse<Uint8List, void>> getAvatarDark({
required String guestName,
required String size,
}) async {
final _request = $getAvatarDark_Request(
guestName: guestName,
size: size,
);
final _streamedResponse = await _rootClient.httpClient.send(_request);
final _response = await _i3.Response.fromStream(_streamedResponse);
final _serializer = $getAvatarDark_Serializer();
return _i1.ResponseConverter<Uint8List, void>(_serializer).convert(_response);
}