getObjectsUnderPoint method

  1. @override
List<DisplayObject> getObjectsUnderPoint(
  1. Point<num> point
)
override

Returns a list of display objects that lie under the specified point and are children (or grandchildren, and so on) of this display object container.

The point parameter is in the local coordinate system of this display object container.

Implementation

@override
List<DisplayObject> getObjectsUnderPoint(Point<num> point) {
  final result = super.getObjectsUnderPoint(point);
  if (_graphics != null && _graphics!.hitTest(point.x, point.y)) {
    result.insert(0, this);
  }
  return result;
}