messages

fun <M : ValidationMessage> Store<*>.messages(filterPredicate: (M) -> Boolean): Flow<List<M>>?

Finds all corresponding ValidationMessages to this Store which satisfy the filterPredicate-expression.

Be aware that the filtering is based upon the correct usage of Store.path's field. This can be reliably achieved by using dev.fritz2.core.Inspectors and their mappings for creating the correct path values.

Parameters

filterPredicate

expression to filter messages.


fun <M : ValidationMessage> Store<*>.messages(): Flow<List<M>>?

Finds all exactly corresponding ValidationMessages to this Store, which means all messages, which have exactly the same path as the Store.

Be aware that the filtering is based upon the correct usage of Store.path's field. This can be reliably achieved by using dev.fritz2.core.Inspectors and their mappings for creating the correct path values.