Is there a way to make this work? I get a message ...
# announcements
n
Is there a way to make this work? I get a message that it is currently unsupported
Copy code
fun defaultFilterPredicate(searchTerm: String) : Boolean = searchTerm.contains(searchTerm, true)


        fun filterItems(searchTerm: String) : List<DataProvider> {
            return items.filter {
                (::filterPredicate ?: ::defaultFilterPredicate)(searchTerm)
            }
        }