If you see a method call that have space between, it is likely a Kotlin infix notation.
Whenever I read Kotlin code that has infix notation, it always confuses me. Maybe I should say I still haven't gotten used to it? Honestly, it is just sugar syntax in my opinion.
For example:
val result = 2 plus 3
is the same as
val result = 2.plus(3)
2 is the Int object. plus() is the method of Int. 3 is Int parameter for Int.plus()
The plus() method definition looks like this. It is an .
Originally published at https://vtsen.hashnode.dev.
SOCIAL SHARE CARD GENERATOR