copyWith method

NodeFlowConfig copyWith({
  1. double? portSnapDistance,
  2. double? minZoom,
  3. double? maxZoom,
  4. bool? scrollToZoom,
  5. bool? showAttribution,
})

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