addToHitGrid method

void addToHitGrid(
  1. int x,
  2. int y,
  3. int width,
  4. int height,
  5. int id,
)

Registers a low-level native/debug hit-grid region.

Built-in widgets use render-tree hit testing for pointer routing.

Implementation

void addToHitGrid(int x, int y, int width, int height, int id) {
  if (_disposed) throw StateError('Renderer is disposed');
  _bindings.addToHitGrid(_ptr, x, y, width, height, id);
}