opposite

open override fun opposite(isSystemInDarkTheme: Boolean): Theme

Returns the opposite theme based on the current theme and system settings.

Return

The opposite theme: Dark returns Light, Light returns Dark, and System returns the opposite of the current system theme.

Parameters

isSystemInDarkTheme

Whether the system is currently in dark theme mode. This parameter is only relevant for System theme mode.