copyWith method
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,
})
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,
);
}