addGlobalRoute method

void addGlobalRoute(
  1. PointerRoute route, [
  2. Matrix4? transform
])

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, [Matrix4? transform]) {
  assert(!_globalRoutes.containsKey(route));
  _globalRoutes[route] = transform;
}