contains method

bool contains(
  1. Offset point
)

Whether the bounds contain a point.

Implementation

bool contains(Offset point) {
  return point.dx >= left &&
      point.dx <= right &&
      point.dy >= top &&
      point.dy <= bottom;
}