asFlow

abstract override fun asFlow(): Flow<RealmList<E>>

Observes changes to the RealmList. If there is any change to the list, the flow will emit the updated RealmResult. The flow will continue running indefinitely until canceled or until the parent object is deleted.

The change calculations will run on the thread represented by RealmConfiguration.Builder.notificationDispatcher.

Return

a flow representing changes to the list.