copyWith method

Relation copyWith({
  1. String? name,
  2. Label<RelationLabel>? label,
  3. PropertyMetadata? metadata,
})

Implementation

Relation copyWith({
  String? name,
  Label<RelationLabel>? label,
  PropertyMetadata? metadata,
}) => Relation(
  name: name ?? this.name,
  label: label ?? this.label,
  metadata: metadata ?? this.metadata,
);