kotlin-extensions / io.realm.kotlin / io.realm.RealmList

Extensions for io.realm.RealmList

toFlow

Returns a Flow that monitors changes to this RealmList. It will emit the current RealmResults when subscribed to. RealmList updates will continually be emitted as the RealmList is updated - onCompletion will never be called.

fun <T : RealmObject> RealmList<T>.toFlow(): Flow<RealmList<T>>