addToHitGrid method
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);
}