Redirect.temporaryRedirect constructor

Redirect.temporaryRedirect(
  1. dynamic body, {
  2. Map<String, dynamic>? headers,
  3. dynamic statusCode = HttpStatus.temporaryRedirect,
  4. List<Cookie>? cookies,
})

Performs 'temporary redirect' (status code: 307) redirect

Implementation

factory Redirect.temporaryRedirect(
  body, {
  Map<String, dynamic>? headers,
  statusCode = HttpStatus.temporaryRedirect,
  List<Cookie>? cookies,
}) =>
    Redirect(
      body,
      headers: headers,
      statusCode: statusCode,
      cookies: cookies,
    );