ConnectionEvents<T> constructor

const ConnectionEvents<T>({
  1. ValueChanged<Connection>? onCreated,
  2. ValueChanged<Connection>? onDeleted,
  3. ValueChanged<Connection?>? onSelected,
  4. ValueChanged<Connection>? onTap,
  5. ValueChanged<Connection>? onDoubleTap,
  6. ValueChanged<Connection>? onMouseEnter,
  7. ValueChanged<Connection>? onMouseLeave,
  8. void onContextMenu(
    1. Connection connection,
    2. Offset screenPosition
    )?,
  9. void onConnectStart(
    1. String nodeId,
    2. String portId,
    3. bool isOutput
    )?,
  10. void onConnectEnd(
    1. bool success
    )?,
  11. ConnectionValidationResult onBeforeStart(
    1. ConnectionStartContext<T> context
    )?,
  12. ConnectionValidationResult onBeforeComplete(
    1. ConnectionCompleteContext<T> context
    )?,
})

Implementation

const ConnectionEvents({
  this.onCreated,
  this.onDeleted,
  this.onSelected,
  this.onTap,
  this.onDoubleTap,
  this.onMouseEnter,
  this.onMouseLeave,
  this.onContextMenu,
  this.onConnectStart,
  this.onConnectEnd,
  this.onBeforeStart,
  this.onBeforeComplete,
});