isOverObject method

bool isOverObject(
  1. Offset offset
)

Implementation

bool isOverObject(Offset offset) {
  return Rect.fromPoints(
    location,
    location.translate(
      size.width,
      size.height,
    ),
  ).contains(offset);
}