copyWith method

WorkflowConfig copyWith({
  1. Color? primaryColor,
  2. Color? secondaryColor,
  3. Color? backgroundColor,
  4. double? nodeWidth,
  5. double? nodeHeight,
  6. double? gridSize,
  7. double? connectionStrokeWidth,
  8. bool? showGrid,
  9. bool? enableSnapping,
  10. double? snapDistance,
  11. Duration? animationDuration,
  12. Map<String, dynamic>? customProperties,
})

Implementation

WorkflowConfig copyWith({
  Color? primaryColor,
  Color? secondaryColor,
  Color? backgroundColor,
  double? nodeWidth,
  double? nodeHeight,
  double? gridSize,
  double? connectionStrokeWidth,
  bool? showGrid,
  bool? enableSnapping,
  double? snapDistance,
  Duration? animationDuration,
  Map<String, dynamic>? customProperties,
}) {
  return WorkflowConfig(
    primaryColor: primaryColor ?? this.primaryColor,
    secondaryColor: secondaryColor ?? this.secondaryColor,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    nodeWidth: nodeWidth ?? this.nodeWidth,
    nodeHeight: nodeHeight ?? this.nodeHeight,
    gridSize: gridSize ?? this.gridSize,
    connectionStrokeWidth: connectionStrokeWidth ?? this.connectionStrokeWidth,
    showGrid: showGrid ?? this.showGrid,
    enableSnapping: enableSnapping ?? this.enableSnapping,
    snapDistance: snapDistance ?? this.snapDistance,
    animationDuration: animationDuration ?? this.animationDuration,
    customProperties: customProperties ?? this.customProperties,
  );
}