PortEvents<T> constructor

const PortEvents<T>({
  1. void onTap(
    1. Node<T> node,
    2. Port port,
    3. bool isOutput
    )?,
  2. void onDoubleTap(
    1. Node<T> node,
    2. Port port,
    3. bool isOutput
    )?,
  3. void onMouseEnter(
    1. Node<T> node,
    2. Port port,
    3. bool isOutput
    )?,
  4. void onMouseLeave(
    1. Node<T> node,
    2. Port port,
    3. bool isOutput
    )?,
  5. void onContextMenu(
    1. Node<T> node,
    2. Port port,
    3. bool isOutput,
    4. Offset screenPosition,
    )?,
})

Implementation

const PortEvents({
  this.onTap,
  this.onDoubleTap,
  this.onMouseEnter,
  this.onMouseLeave,
  this.onContextMenu,
});