contains

fun contains(filter: (MenuCommand) -> Boolean): Boolean
fun contains(filter: Filter<MenuCommand>): Boolean

Checks if the menu contains any MenuCommand matching the filter.

Return

true if a MenuCommand exists, false otherwise

Parameters

filter

the filter to apply