containsEventHandlerAt method

bool containsEventHandlerAt(
  1. Vector2 position
)
inherited

Whether the game has an event-handling component at the given position.

Used by GameRenderBox for hit testing to determine if pointer events should be consumed by the game or passed through to Flutter widgets behind it.

The default returns true, meaning games that directly extend Game will catch all events on their entire surface. FlameGame overrides this to only report a hit when a component with event callbacks (e.g. TapCallbacks) exists at the given position.

Implementation

bool containsEventHandlerAt(Vector2 position) => true;