getThemedIcon method
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<DynamiteResponse<Uint8List, void>> getThemedIcon({
required String app,
required String image,
}) async {
final rawResponse = getThemedIconRaw(
app: app,
image: image,
);
return rawResponse.future;
}