redirect method

RouteQueueEntry redirect(
  1. RouteQueueEntry entry, {
  2. RedirectBuilder? builder,
})

Implementation

RouteQueueEntry redirect(RouteQueueEntry entry, {RedirectBuilder? builder}) {
  if (redirectBuilder == null) return builder?.call(entry) ?? entry;
  return redirectBuilder!(entry);
}