addGlobalRoute method Null safety

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.


void addGlobalRoute(PointerRoute route, [Matrix4? transform]) {
  _globalRoutes[route] = transform;