addRoute<T> method

void addRoute<T>(
  1. GetPage<T> route
)

Implementation

void addRoute<T>(GetPage<T> route) {
  routes.add(route);

  // Add Page children.
  for (var page in _flattenPage(route)) {
    addRoute(page);
  }
}