copyWith method
Implementation
PortInstance copyWith({
dynamic data,
Set<Link>? links,
PortState? state,
Offset? offset,
}) {
final instance = PortInstance(
prototype: prototype,
state: state ?? this.state,
offset: offset ?? this.offset,
);
instance.links = links ?? this.links;
return instance;
}