port static method

PortSpatialItem port({
  1. required String portId,
  2. required String nodeId,
  3. required bool isOutput,
  4. required Rect bounds,
})

Creates a spatial item for a port.

Implementation

static PortSpatialItem port({
  required String portId,
  required String nodeId,
  required bool isOutput,
  required Rect bounds,
}) => PortSpatialItem(
  portId: portId,
  nodeId: nodeId,
  isOutput: isOutput,
  bounds: bounds,
);