PortEvents<T> class
Events related to port interactions
Port events include the parent node for context, since ports are always associated with a node.
Constructors
-
PortEvents({void onTap(Node<
T> node, Port port, bool isOutput)?, void onDoubleTap(Node<T> node, Port port, bool isOutput)?, void onMouseEnter(Node<T> node, Port port, bool isOutput)?, void onMouseLeave(Node<T> node, Port port, bool isOutput)?, void onContextMenu(Node<T> node, Port port, bool isOutput, Offset screenPosition)?}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onContextMenu
→ void Function(Node<
T> node, Port port, bool isOutput, Offset screenPosition)? -
Called on secondary tap on a port (right-click/long-press for context menu).
final
-
onDoubleTap
→ void Function(Node<
T> node, Port port, bool isOutput)? -
Called when a port is double-tapped
Receives the node, port, and whether it's an output port
final
-
onMouseEnter
→ void Function(Node<
T> node, Port port, bool isOutput)? -
Called when mouse enters a port's bounds
Receives the node, port, and whether it's an output port
final
-
onMouseLeave
→ void Function(Node<
T> node, Port port, bool isOutput)? -
Called when mouse leaves a port's bounds
Receives the node, port, and whether it's an output port
final
-
onTap
→ void Function(Node<
T> node, Port port, bool isOutput)? -
Called when a port is tapped
Receives the node, port, and whether it's an output port
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{void onTap(Node< T> node, Port port, bool isOutput)?, void onDoubleTap(Node<T> node, Port port, bool isOutput)?, void onMouseEnter(Node<T> node, Port port, bool isOutput)?, void onMouseLeave(Node<T> node, Port port, bool isOutput)?, void onContextMenu(Node<T> node, Port port, bool isOutput, Offset 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