Android App Development, AndroidDev, Jetpack Compose, Jetpack Compose Stability, Jetpack Compose Immutable.
when the user clicks a ToggleButton : Compose checks whether it needs to recompose the code inside PlayerScore. It knows that Player is a mutable class, so it recomposes PlayerDetails isActive has changed therefore, it recomposes ToggleButton Lists, Sets, Maps and Collections data class Players(