installTheme method
Future<Result<Boolean> >
installTheme({
- required bool dark,
- InputThemeBase? theme,
- String? format,
- 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>();
}