copyWith method

EdgeConnectionsModel<E> copyWith({
  1. String? id,
  2. NodeSocketModel? source,
  3. NodeSocketModel? target,
  4. E? data,
  5. LukeEdgePainter? painter,
  6. double? animationSpeed,
  7. bool? isAnimated,
})

Implementation

EdgeConnectionsModel<E> copyWith({
  String? id,
  NodeSocketModel? source,
  NodeSocketModel? target,
  E? data,
  LukeEdgePainter? painter,
  double? animationSpeed,
  bool? isAnimated,
}) {
  return EdgeConnectionsModel<E>(
    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,
  );
}