https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
v

Vivek Modi

05/06/2022, 4:42 PM
Hey guys, what is the benefits of using
flow
over normal
list/muablelist
in Kmm project? What is the benefits in ios platform?
m

Marko Novakovic

05/06/2022, 8:04 PM
that depends on your usecase doesn’t it? you can use
Flow
to observe some changes and
Flow
can be
Flow<List<*>>
. when you need to stream values use
Flow
othervise for storing things, one time returns etc. use
List
v

Vivek Modi

05/06/2022, 9:28 PM
Can we use mutableList ?
Or mutableLivedata ?
m

Marko Novakovic

05/06/2022, 9:48 PM
mutableList
is for different purposes than
Flow
or
LiveData
v

Vivek Modi

05/06/2022, 10:28 PM
Okk
6 Views