EdgeConnectionsModel<E> constructor
EdgeConnectionsModel<E> ({
- String? id,
- required NodeSocketModel source,
- required NodeSocketModel target,
- E? data,
- LukeEdgePainter? painter,
- bool isAnimated = false,
- 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}";
}