code: func (i *MenuItem) SetChecked(checked bool) (err error) {
  	if err = i.isActionable(); err != nil {
  		return
  	}
  	i.o.Checked = PtrBool(checked)
  	_, err = synchronousEvent(i.c, i, i.w, Event{Name: EventNameMenuItemCmdSetChecked, TargetID: i.id, MenuItemOptions: &MenuItemOptions{Checked: i.o.Checked}}, EventNameMenuItemEventCheckedSet)
  	return
  }
docs: // SetChecked sets the checked attribute