isPointVisible method

bool isPointVisible(
  1. Offset worldPoint
)

Checks if a world coordinate point is visible in the current viewport.

Parameters:

  • worldPoint: The point to check in world/graph coordinates

Returns true if the point is within the visible viewport, false otherwise.

Implementation

bool isPointVisible(Offset worldPoint) {
  return viewportExtent.contains(worldPoint);
}