removeGlobalRoute method Null safety

void removeGlobalRoute(
  1. PointerRoute route
)

Removes a route from the global entry in the routing table.

No longer call route when routing a PointerEvent. Requires that this route was previously added via addGlobalRoute.

Routes removed reentrantly within PointerRouter.route will take effect immediately.

Implementation

void removeGlobalRoute(PointerRoute route) {
  assert(_globalRoutes.containsKey(route));
  _globalRoutes.remove(route);
}