removeRoute<T> function

void removeRoute<T>(
  1. RouterContext<T> ctx,
  2. String method,
  3. String path
)

Remove a route from the router context.

Implementation

void removeRoute<T>(RouterContext<T> ctx, String method, String path) {
  return _remove(ctx.root, method, toPathSegments(path), 0);
}