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. ScreenPosition screenPosition
    )?,
  9. void onConnectStart(
    1. Node<T> sourceNode,
    2. Port sourcePort
    )?,
  10. void onConnectEnd(
    1. Node<T>? targetNode,
    2. Port? targetPort
    )?,
  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,
});