getThemeStylesheet method
Get the CSS stylesheet for a theme.
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:
plain
Let the browser decide the CSS priority. Defaults to0
.withCustomCss
Include custom CSS. Defaults to0
.themeId
ID of the theme.
Status codes:
- 200: Stylesheet returned
- 404: Theme not found
See:
- getThemeStylesheetRaw for an experimental operation that returns a DynamiteRawResponse that can be serialized.
Implementation
Future<DynamiteResponse<String, void>> getThemeStylesheet({
required String themeId,
int? plain,
int? withCustomCss,
}) async {
final rawResponse = getThemeStylesheetRaw(
themeId: themeId,
plain: plain,
withCustomCss: withCustomCss,
);
return rawResponse.future;
}