debugHandleEvent method
Implements the debugPaintPointersEnabled debugging feature.
RenderBox subclasses that implement handleEvent should call debugHandleEvent from their handleEvent method, as follows:
class RenderFoo extends RenderBox {
// ...
@override
void handleEvent(PointerEvent event, HitTestEntry entry) {
assert(debugHandleEvent(event, entry));
// ... handle the event ...
}
// ...
}
If you call this for a PointerDownEvent, make sure you also call it for the corresponding PointerUpEvent or PointerCancelEvent.
Implementation
@override
bool debugHandleEvent(PointerEvent event, HitTestEntry entry) {
return true;
}