Correct way to implement newInstance of Fragment in Kotlin
May 28, 2021
As we know kotlin provide us numerous benefits to write code.
Here I am try to provide a best way to create new Instance of fragment using some benefits of kotlin language like scope function.
In generally we write newInstance of fragment like below.
Using kotlin we can reduce code like below.
Thank you.