find_menu_item


Description:

public MenuItem? find_menu_item<T> (T value, FindFunc<T> func)

Find a MenuItem that matches value.

Parameters:

value

The value to pass to func.

func

The function that compares value to each MenuItem in in the Menu.

Returns:

The MenuItem if a match was found, otherwise null.