copy method
Returns a new copy with updated source and/or target sockets.
Implementation
EdgeConnectionsModel copy({
NodeSocketModel? source,
NodeSocketModel? target,
dynamic data,
}) {
final newSource = source ?? this.source.copy();
final newTarget = target ?? this.target.copy();
return EdgeConnectionsModel(
source: newSource,
target: newTarget,
data: data ?? this.data,
);
}