updateTheme method
Future<Result<ThemeBase> >
updateTheme({
- required String format,
- required InputThemeBase theme,
- String? slug,
- String? title,
- InputDocumentBase? document,
- List<
InputThemeSettingsBase> ? settings,
Update Theme.
ID: 2bf40ccc
.
Implementation
Future<Result<ThemeBase>> updateTheme({
required String format,
required InputThemeBase theme,
String? slug,
String? title,
InputDocumentBase? document,
List<InputThemeSettingsBase>? settings,
}) async {
// Preparing the request.
final request = AccountUpdateTheme(
format: format,
theme: theme,
slug: slug,
title: title,
document: document,
settings: settings,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<ThemeBase>();
}