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:

  • getThemedIconRaw for an experimental operation that returns a DynamiteRawResponse that can be serialized.

Implementation

Future<_i1.DynamiteResponse<Uint8List, void>> getThemedIcon({
  required String app,
  required String image,
}) async {
  final rawResponse = getThemedIconRaw(
    app: app,
    image: image,
  );

  return rawResponse.future;
}