getThemeStylesheet method
Future<DynamiteResponse<String, void> >
getThemeStylesheet({
- required String themeId,
- ThemingGetThemeStylesheetPlain? plain,
- ThemingGetThemeStylesheetWithCustomCss? withCustomCss,
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:
- $getThemeStylesheet_Request for the request send by this method.
- $getThemeStylesheet_Serializer for a converter to parse the
Response
from an executed request.
Implementation
Future<_i1.DynamiteResponse<String, void>> getThemeStylesheet({
required String themeId,
ThemingGetThemeStylesheetPlain? plain,
ThemingGetThemeStylesheetWithCustomCss? withCustomCss,
}) async {
final _request = $getThemeStylesheet_Request(
themeId: themeId,
plain: plain,
withCustomCss: withCustomCss,
);
final _response = await _rootClient.httpClient.send(_request);
final _serializer = $getThemeStylesheet_Serializer();
final _rawResponse = await _i1.ResponseConverter<String, void>(_serializer).convert(_response);
return _i1.DynamiteResponse.fromRawResponse(_rawResponse);
}