Command Palette
Search for a command to run...
Comments
Join the discussionNo comments yet. Be the first to comment.
More from this blog
Kotlin Koin - Android Tutorial for Beginners
What is Koin? A pragmatic lightweight dependency injection framework for Kotlin developers Written in pure Kotlin. What is dependency and dependency Injection? Let’s take an example. We have a relation between Car and Engine classes. To access Engine...
Functional (SAM) interfaces in Kotlin
An interface with only one abstract method is called a functional interface(Single Abstract Method). functional (SAM) interface can have multiple non abstract method but only one abstract method // functional interface example interface CatchAble {...
How To Combine Flows In Kotlin
Coroutines provides combine, zip and flattenMerge operators is used to combine emissions from multiple flows Combine Combine operator takes the latest emission from two flows and gives result import kotlinx.coroutines.* import kotlinx.coroutines.f...
Type Aliases in kotlin
type alias provide alternative name for existing type. if type name is longer can be introduces shorter name , it will not introduced new types, they are equivalent to corresponding types. data class User( val name:String? = null, ) // alias fo...
Data class in Kotlin
The main purpose of data class is hold data , in koltin compiler automatically creates following getters and setters for the constructor parameters - hashCode() equals() toString() copy() componentN() function following condition should be fullf...
