In this short and practicle article, we will talk about handling UI events, such as onClick events, by taking full advantage of the Kotlin’s Function Types and Sealed Classes. If you have not already learned about what a composable is, consider reading this article which explains…