setErrorForModelOrObject method

void setErrorForModelOrObject(
  1. dynamic value, {
  2. Object? key,
})
inherited

Implementation

void setErrorForModelOrObject(dynamic value, {Object? key}) {
  if (key != null) {
    setErrorForObject(key, value);
  } else {
    setErrorForObject(this, value);
  }
}