ModelRelation.create constructor

ModelRelation.create(
  1. IdUid id,
  2. String? name, {
  3. String? targetId,
  4. String? targetName,
})

Implementation

ModelRelation.create(this.id, String? name,
    {String? targetId, String? targetName}) {
  this.name = name;
  if (targetId != null) this.targetId = IdUid.fromString(targetId);
  if (targetName != null) this.targetName = targetName;
}