copyWithBounds method

  1. @override
PortSpatialItem copyWithBounds(
  1. Rect newBounds
)
override

Creates a copy with updated bounds.

Implementation

@override
PortSpatialItem copyWithBounds(Rect newBounds) => PortSpatialItem(
  portId: portId,
  nodeId: nodeId,
  isOutput: isOutput,
  bounds: newBounds,
);