setValueAt(index, value, flags = {}) {
    if (!flags.noDefault && (value === null || value === undefined) && !this.component.multiple) {
      value = this.defaultValue;
    }

    const input = this.performInputMapping(this.refs.input[index]);
    const valueMaskInput = this.refs.valueMaskInput;

    if (valueMaskInput?.mask && valueMaskInput.mask.textMaskInputElement) {
      valueMaskInput.mask.textMaskInputElement.update(value);
    }

    if (input.mask && input.mask.textMaskInputElement) {
      input.mask.textMaskInputElement.update(value);
    }
    else if (input.widget && input.widget.setValue) {
      input.widget.setValue(value);
    }
    else {
      input.value = value;
    }
  }
Set the value at a specific index.
@param {number} index - The index to set the value at.
@param {*} value - The value to set at the specified index.
@param {*} flags - The flags to use when setting the value.