A Template for ViewModel + Flow
Whether you're using MVI or MVVN, ViewModel is now the best way to store application-related data.
Closure in Kotlin
A lambda expression or anonymous function (as well as a local function and an object expression) can access its closure, which includes the variables declared in the outer scope. The variables captured in the closure can be modified in the lambda.
Posted on Fri, Aug 18, 2023
Kotlin