sendRedirect function

ApiResponse sendRedirect(
  1. String location, {
  2. int statusCode = 302,
})

Send a redirect

Implementation

ApiResponse sendRedirect(String location, {int statusCode = 302}) {
  return ApiResponse(
    statusCode: statusCode,
    headers: {'Location': location},
  );
}