pickAfterRoute method

Iterable<GetPage> pickAfterRoute(
  1. String route
)

Returns the routes after the given route.

Implementation

Iterable<GetPage> pickAfterRoute(String route) {
  // If the provided route is root, we take the first route after root.
  if (route == '/') {
    return pickFromRoute(route).skip(1).take(1);
  }
  // Otherwise, we skip the route and take all routes after it.
  return pickFromRoute(route).skip(1);
}