rebuildConnections method
Rebuilds connections using single bounds calculator. Convenience wrapper that converts single-bound results to segment lists.
Implementation
void rebuildConnections(
Iterable<Connection> connections,
Rect Function(Connection) boundsCalculator,
) {
rebuildConnectionsWithSegments(
connections,
(connection) => [boundsCalculator(connection)],
);
}