getThemedIcon method

Future<DynamiteResponse<Uint8List, void>> getThemedIcon({
  1. required String app,
  2. required String image,
})

Get a themed icon.

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:

  • app ID of the app.
  • image image file name (svg required).

Status codes:

  • 200: Themed icon returned
  • 404: Themed icon not found
  • 500

See:

Implementation

Future<_i1.DynamiteResponse<Uint8List, void>> getThemedIcon({
  required String app,
  required String image,
}) async {
  final _request = $getThemedIcon_Request(
    app: app,
    image: image,
  );
  final _response = await _rootClient.httpClient.send(_request);

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