copyWith method
Create a copy with different initial values
Implementation
NodeFlowConfig copyWith({
double? portSnapDistance,
double? minZoom,
double? maxZoom,
bool? scrollToZoom,
bool? showAttribution,
}) {
return NodeFlowConfig(
portSnapDistance: portSnapDistance ?? this.portSnapDistance.value,
minZoom: minZoom ?? this.minZoom.value,
maxZoom: maxZoom ?? this.maxZoom.value,
scrollToZoom: scrollToZoom ?? this.scrollToZoom.value,
showAttribution: showAttribution ?? this.showAttribution,
);
}