code: function setCheckedItem(itemIndex, toggle) {
      const item = this.state.items[itemIndex];
  
      if (item) {
          if (this.state.isCheckbox && !toggle) {
              item.checked = true;
          } else if (this.state.isCheckbox && toggle) {
              item.checked = !item.checked;
          } else if (this.state.isRadio) {
              this.state.items[itemIndex].checked = true;
          }
  
          if (this.state.isCheckbox || this.state.isRadio) {
              this.setStateDirty('items');
          }
  
          if (this.state.isRadio || toggle) {
              this.processAfterStateChange([itemIndex]);
          }
      }
  }
docs: Set the checked item based on the index
  @param {Integer} itemIndex
  @param {Boolean} toggle