removeFieldValue method

void removeFieldValue(
  1. String id, {
  2. bool notifyField = false,
})

Removes internal field value

If notifyField is true, this will call the form field didChange method with a null value

Implementation

void removeFieldValue(String id, {bool notifyField = false}) {
  _value.remove(id);
  if (notifyField) {
    final field = _fields[id];
    if (field != null) field.didChange(null);
  }
}