copyWith method
Creates a copy of this node.
Implementation
NetworkNode copyWith({
String? id,
String? label,
String? group,
double? x,
double? y,
double? vx,
double? vy,
bool? fixed,
double? radius,
Color? color,
Map<String, dynamic>? metadata,
}) {
return NetworkNode(
id: id ?? this.id,
label: label ?? this.label,
group: group ?? this.group,
x: x ?? this.x,
y: y ?? this.y,
vx: vx ?? this.vx,
vy: vy ?? this.vy,
fixed: fixed ?? this.fixed,
radius: radius ?? this.radius,
color: color ?? this.color,
metadata: metadata ?? this.metadata,
);
}