copyWith method
ConnectionEndPoint
copyWith({
- MarkerShape? shape,
- Size? size,
- Color? color,
- Color? borderColor,
- double? borderWidth,
Creates a copy of this endpoint with optionally updated properties.
Parameters:
shape: If provided, replaces the current shapesize: If provided, replaces the current sizecolor: If provided, replaces the current colorborderColor: If provided, replaces the current border colorborderWidth: If provided, replaces the current border width
Returns: A new ConnectionEndPoint with the specified changes
Implementation
ConnectionEndPoint copyWith({
MarkerShape? shape,
Size? size,
Color? color,
Color? borderColor,
double? borderWidth,
}) {
return ConnectionEndPoint(
shape: shape ?? this.shape,
size: size ?? this.size,
color: color ?? this.color,
borderColor: borderColor ?? this.borderColor,
borderWidth: borderWidth ?? this.borderWidth,
);
}