Categories
android kotlin

Lessons Learnt with Kotlin: Using inline classes 👩‍🔬

What is an inline class? 🧐 An inline class is a special type of class defined in Kotlin that only has one property. At runtime, the compiler will “inline” the property where it was used. This is similar to inline functions, where the compiler inserts the contents of the function into where it was called. Example […]