containsLocalPoint method

  1. @override
bool containsLocalPoint(
  1. Vector2 point
)
override

Test whether the point (given in local coordinates) lies within this component. The top and the left borders of the component are inclusive, while the bottom and the right borders are exclusive.

Implementation

@override
bool containsLocalPoint(Vector2 point) {
  var hover = edgeShape.hoverTest(point, edge, this);
  if (hover == null) return super.containsLocalPoint(point);
  return hover;
}