1 min readJan 25, 2018
When you write your own Kotlin DSL I’d recommend to reconsider your Javisms and stick with simpler and more straightforwrad naming approach for your listeners/handlers. One, that is more in Kotlin style:
cancelImage.onClick { dismiss() }