getAvatarDark method

Future<DynamiteResponse<Uint8List, void>> getAvatarDark({
  1. required String guestName,
  2. required String size,
})

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:

Implementation

Future<_i1.DynamiteResponse<Uint8List, void>> getAvatarDark({
  required String guestName,
  required String size,
}) async {
  final _request = $getAvatarDark_Request(
    guestName: guestName,
    size: size,
  );
  final _response = await _rootClient.httpClient.send(_request);

  final _serializer = $getAvatarDark_Serializer();
  final _rawResponse = await _i1.ResponseConverter<Uint8List, void>(_serializer).convert(_response);
  return _i1.DynamiteResponse.fromRawResponse(_rawResponse);
}