installTheme method

Future<Result<Boolean>> installTheme({
  1. required bool dark,
  2. InputThemeBase? theme,
  3. String? format,
  4. BaseThemeBase? baseTheme,
})

Install Theme.

ID: c727bb3b.

Implementation

Future<Result<Boolean>> installTheme({
  required bool dark,
  InputThemeBase? theme,
  String? format,
  BaseThemeBase? baseTheme,
}) async {
  // Preparing the request.
  final request = AccountInstallTheme(
    dark: dark,
    theme: theme,
    format: format,
    baseTheme: baseTheme,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<Boolean>();
}