copyWith method

CollisionOptions copyWith({
  1. double? step,
  2. double? maxRadius,
  3. double? pad,
  4. double? anchorPad,
  5. bool? avoidCollisions,
  6. bool? drawConnectors,
  7. Color? connectorColor,
  8. double? connectorStrokeWidth,
  9. Size? defaultSize,
})

Implementation

CollisionOptions copyWith({
  double? step,
  double? maxRadius,
  double? pad,
  double? anchorPad,
  bool? avoidCollisions,
  bool? drawConnectors,
  Color? connectorColor,
  double? connectorStrokeWidth,
  Size? defaultSize,
}) {
  return CollisionOptions(
    step: step ?? this.step,
    maxRadius: maxRadius ?? this.maxRadius,
    pad: pad ?? this.pad,
    anchorPad: anchorPad ?? this.anchorPad,
    avoidCollisions: avoidCollisions ?? this.avoidCollisions,
    drawConnectors: drawConnectors ?? this.drawConnectors,
    connectorColor: connectorColor ?? this.connectorColor,
    connectorStrokeWidth: connectorStrokeWidth ?? this.connectorStrokeWidth,
    defaultSize: defaultSize ?? this.defaultSize,
  );
}