filter

fun filter(predicate: (M) -> Boolean): Flow<List<M>>

Returns a Flow of list containing only ValidationMessages matching the given predicate.