This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<item name="android:windowTranslucentStatus">true</item> | |
<item name="android:windowTranslucentNavigation">true</item> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main() { | |
val state = State.DataLoaded | |
val newState = state + UserInputs.OnRetryClick | |
println(newState) | |
} | |
sealed class State{ | |
abstract operator fun plus(userInputs: UserInputs): State | |
object DataLoaded : State() { |
OlderNewer