I'm building a menu2 with toggle items using menu xml definitions. I cannot figure out how to programmatically set the toggle state of the menu item. When the user changes the toggle state, I am saving the state to Application.Storage, but when I load the menu, it reverts to the state from the xml definition. When instantiating the menu, I can not figure out how to identify the ToggleMenuItem to invoke the setEnabled method.
If I try to call Menu2.findItemById("item1").setEnabled(Application.Storage.getValue("booleanHolder")) I am told "Cannot find symbol ':setEnabled' on type '$.Toybox.Lang.Number'."