PortEvents<T> class

Events related to port interactions.

Port events include the parent node for context, since ports are always associated with a node. The port's direction (input/output) can be determined via Port.isOutput or Port.isInput.

Constructors

PortEvents({void onTap(Node<T> node, Port port)?, void onDoubleTap(Node<T> node, Port port)?, void onMouseEnter(Node<T> node, Port port)?, void onMouseLeave(Node<T> node, Port port)?, void onContextMenu(Node<T> node, Port port, ScreenPosition screenPosition)?})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
onContextMenu → void Function(Node<T> node, Port port, ScreenPosition screenPosition)?
Called on secondary tap on a port (right-click/long-press for context menu).
final
onDoubleTap → void Function(Node<T> node, Port port)?
Called when a port is double-tapped.
final
onMouseEnter → void Function(Node<T> node, Port port)?
Called when mouse enters a port's bounds.
final
onMouseLeave → void Function(Node<T> node, Port port)?
Called when mouse leaves a port's bounds.
final
onTap → void Function(Node<T> node, Port port)?
Called when a port is tapped.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({void onTap(Node<T> node, Port port)?, void onDoubleTap(Node<T> node, Port port)?, void onMouseEnter(Node<T> node, Port port)?, void onMouseLeave(Node<T> node, Port port)?, void onContextMenu(Node<T> node, Port port, ScreenPosition screenPosition)?}) PortEvents<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited