setRawKey method

void setRawKey(
  1. String key,
  2. dynamic value
)

Author (Lvyan): 添加除了field之外的value set raw form data key

Implementation

void setRawKey(String key, dynamic value) {
  if (hasField(key)) {
    maybeField(key)?.value = value;
  } else {
    _formValue[key] = value;
  }
}