I have a table like this:
data class ChapterDetails(
val id: Int,
var correctAnswersCount: Int,
var totalQuestionsCount: Int,
// ... ... ...
)
I would like to return a Flow<Map<Int, Pair<Int, Int>> > from the room dao. I saw this
i.e.
- first is empty as expected (now rows exist at that point)
- second has the expected data from the first row
You just need to adapt it to use Flow