registerAll method

void registerAll(
  1. List<RouteNode<Object?>> routes
)

Registers multiple routes at once.

Existing routes with the same name will be overwritten.

Implementation

void registerAll(List<RouteNode<Object?>> routes) {
  for (final route in routes) {
    _routes[route.name] = route;
  }
}