copyWith method
Relation
copyWith({
- String? name,
- RelationData? relationData,
- dynamic source,
- dynamic target,
- RelationExpandable? expandable,
- 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,
);
}