toflow

fun DynamicRealm.toflow(): Flow<DynamicRealm>

Creates a Flow for a DynamicRealm. It should emit the initial state of the Realm when subscribed to and on each subsequent update of the Realm.

Return

Kotlin Flow that emit all updates to the Realm.

fun Realm.toflow(): Flow<Realm>

Creates a Flow for a Realm. It should emit the initial state of the Realm when subscribed to and on each subsequent update of the Realm.

Return

Kotlin Flow that emit all updates to the Realm.