indexOf

fun indexOf(filter: Filter<MenuCommand>): Int

Provides the index of the menu command given the specified filter.

Return

The index of the menu command, or -1 if it was not found.

Parameters

filter

The filter to apply to the menu.