updateField method

FormX<T> updateField(
  1. dynamic newValue,
  2. T key
)

Returns a new instance of FormX with the new value of the field without validating it, which means this will not update the value of FormXState.isFormValid.

Implementation

FormX<T> updateField(newValue, T key) {
  final inputMap = _cloneStateMap;
  inputMap[key] = inputMap[key]!.updateValue(newValue);
  return FormX<T>._(inputMap);
}