copyWith method
Creates a copy of this link.
Implementation
NetworkLink copyWith({
String? source,
String? target,
double? weight,
String? label,
Color? color,
double? width,
bool? directed,
Map<String, dynamic>? metadata,
}) {
return NetworkLink(
source: source ?? this.source,
target: target ?? this.target,
weight: weight ?? this.weight,
label: label ?? this.label,
color: color ?? this.color,
width: width ?? this.width,
directed: directed ?? this.directed,
metadata: metadata ?? this.metadata,
);
}