addGlobalRoute method

void addGlobalRoute (PointerRoute route)

Adds a route to the global entry in the routing table.

Whenever this object routes a PointerEvent, call route.

Routes added reentrantly within PointerRouter.route will take effect when routing the next event.

Implementation

void addGlobalRoute(PointerRoute route) {
  assert(!_globalRoutes.contains(route));
  _globalRoutes.add(route);
}