copyWithBounds method

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

Creates a copy with updated bounds.

Implementation

@override
ConnectionSegmentItem copyWithBounds(Rect newBounds) => ConnectionSegmentItem(
  connectionId: connectionId,
  segmentIndex: segmentIndex,
  bounds: newBounds,
);