updateTheme

abstract suspend fun updateTheme(theme: Theme)

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.