hitTouch method

  1. @override
bool hitTouch(
  1. GPoint localPoint, [
  2. bool useShape = false
])
override

Checks whether a localPoint inside the object's boundary. This method always returns true for the Stage object, because it occupies the entire screen and it should always receive touch events.

If useShape is true, the method will use the object's shape to check whether the point is inside it, instead of using its bounding box.

Returns true if the point is inside the stage's boundary, or false otherwise.

Implementation

@override
bool hitTouch(GPoint localPoint, [bool useShape = false]) {
  return true;
}