EdgeConnectionsModel<E> constructor

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

Implementation

EdgeConnectionsModel({
  String? id,
  required this.source,
  required this.target,
  this.data,
  this.painter,
  this.isAnimated = false,
  this.animationSpeed = 1,
}) {
  this.id = "${source.id}-${target.id}";
}