setRelation method

void setRelation(
  1. String relation,
  2. dynamic value
)

Set the specific relationship in the model.

Implementation

void setRelation(String relation, dynamic value) {
  _relations[relation] = value;
}