withEnd method
Creates a copy with updated end coordinates.
Implementation
ZoneInfo withEnd({required int endX, required int endY}) {
return ZoneInfo(
id: id,
iteration: iteration,
startX: startX,
startY: startY,
endX: endX,
endY: endY,
);
}