reassignInputValue method

void reassignInputValue(
  1. String key,
  2. String value
)

Reassigns the input value for a specific field.

The key parameter is required and must be the key of an existing field. The value parameter is required and must be a string. Updates the input value of the FormCraftTextField associated with the specified key.

Implementation

void reassignInputValue(String key, String value) {
  _checkIfKeyExist(key);

  // Call the private method to reassign the input value for the specified field
  globalKeys[key]!.currentState!._reassignInput(value);
}