for KMM project as a SharedPrefs
Now for fetching the data gives
Flow
is there any way I can get the data as single item just like SharedPrefs do?
t
Tung97 Hl
07/28/2023, 6:53 AM
Using single() on this flow
f
Farid Benhaimoud
08/02/2023, 11:06 PM
If you use single() you got to be sure that there is only 1 emit otherwise it will throw an exception. In case of multiple emits you could use first() or last().