What does “.()” mean in Kotlin?
A function that takes in nothing and returns nothing in Kotlin looks like: var function : () -> Unit The difference is that the function in your code takes in nothing, returns nothing, but is invoked on an object. For example, class Builder (val multiplier: Int) { fun invokeStuff(action: (Builder.() -> Unit)) { this.action() } … Read more