Android App Development, AndroidDev, Jetpack Compose, Jetpack Compose Stability, Jetpack Compose Immutable.
your class as immutable. The validity of a class being immutable isn’t checked but is treated as a promise made by a developer. It enables all optimizations performed under the assumption that all publicly accessible fields will never change. Here’s how you could make the compiler treat Players