copyWithBounds method

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

Creates a copy with updated bounds.

Implementation

@override
NodeSpatialItem copyWithBounds(Rect newBounds) =>
    NodeSpatialItem(nodeId: nodeId, bounds: newBounds);