updateTheme

abstract suspend fun updateTheme(onUpdate: (Theme) -> Theme)


open suspend fun updateTheme(theme: Theme)

Deprecated

Use the updateTheme with lambda updater. This overload will be removed in future versions.

Updates the current theme to the specified value.

This is a suspending function as it may perform I/O operations when persisting the theme change to storage. The implementation should update both the internal state and any persistent storage.

Parameters

theme

The new theme to apply.