containsPoint method

bool containsPoint(
  1. Point other
)

Implementation

bool containsPoint(Point other) =>
    other.x >= x && other.x <= right && other.y >= y && other.y <= bottom;