Connection constructor

Connection({
  1. required Port inPort,
  2. required NodeModel inNode,
  3. required NodeModel outNode,
  4. required Port outPort,
  5. bool selected = false,
})

Implementation

Connection({
  required this.inPort,
  required this.inNode,
  required this.outNode,
  required this.outPort,
  this.selected = false,
}) {
  connectionPath =
      SolidConnectionPath(inputPort: inPort, outputPort: outPort);
}