asFlow

fun Cursor.asFlow(): Flow<Map<String, Any?>>

Create a Flow that returns all the data from the Cursor.

Each element in the flow represents one row from the cursor as a Map. The key is the column name, and the value is the value of the column.