copyWith method

Relation copyWith({
  1. String? name,
  2. RelationData? relationData,
  3. dynamic source,
  4. dynamic target,
  5. RelationExpandable? expandable,
  6. GenericLinks? links,
})

Implementation

Relation copyWith(
    {String? name,
    RelationData? relationData,
    dynamic source,
    dynamic target,
    RelationExpandable? expandable,
    GenericLinks? links}) {
  return Relation(
    name: name ?? this.name,
    relationData: relationData ?? this.relationData,
    source: source ?? this.source,
    target: target ?? this.target,
    expandable: expandable ?? this.expandable,
    links: links ?? this.links,
  );
}