updateTheme method

Future<Result<ThemeBase>> updateTheme({
  1. required String format,
  2. required InputThemeBase theme,
  3. String? slug,
  4. String? title,
  5. InputDocumentBase? document,
  6. 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>();
}