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