copyWith method
EdgeConnectionsModel
copyWith({
- String? id,
- NodeSocketModel? source,
- NodeSocketModel? target,
- dynamic data,
- LukeEdgePainter? painter,
- double? animationSpeed,
- bool? isAnimated,
Implementation
EdgeConnectionsModel copyWith({
String? id,
NodeSocketModel? source,
NodeSocketModel? target,
dynamic data,
LukeEdgePainter? painter,
double? animationSpeed,
bool? isAnimated,
}) {
return EdgeConnectionsModel(
id: id ?? this.id,
source: source ?? this.source,
target: target ?? this.target,
data: data ?? this.data,
painter: painter ?? this.painter,
animationSpeed: animationSpeed ?? this.animationSpeed,
isAnimated: isAnimated ?? this.isAnimated,
);
}