copyWith method
Creates a copy of the VisibleConnection with optional modifications.
position
(optional) specifies a new position for the visible connection.
size
specifies the size of the widget to render.
isHovering
(optional) specifies whether the visible connection is being hovered over.
isVisible
(optional) specifies whether the visible connection is currently visible.
Returns a new instance of VisibleConnection with the specified modifications.
Implementation
VisibleConnection copyWith({
Offset? position,
bool? isHovering,
bool? isVisible,
Size? size,
}) {
return VisibleConnection(
id: id,
size: size ?? this.size,
key: key,
position: position ?? this.position,
isHovering: isHovering ?? this.isHovering,
isVisible: isVisible ?? this.isVisible,
);
}