handleEvent method

  1. @override
void handleEvent (PointerEvent event, HitTestEntry entry)
override

Override this method to receive events.

Implementation

@override // from HitTestTarget
void handleEvent(PointerEvent event, HitTestEntry entry) {
  pointerRouter.route(event);
  if (event is PointerDownEvent) {
    gestureArena.close(event.pointer);
  } else if (event is PointerUpEvent) {
    gestureArena.sweep(event.pointer);
  }
}