contains method

bool contains(
  1. Offset pt
)

Returns true if the given point is within this node's bounds

Implementation

bool contains(Offset pt) =>
    pt.dx >= left && pt.dx <= right && pt.dy >= top && pt.dy <= bottom;