register static method

dynamic register(
  1. Route route
)

Implementation

static register(Route route) {
  routes[route.id] = route;
}