PageRedirect constructor

const PageRedirect(
  1. String location, {
  2. int statusCode = 302,
  3. Map<String, String> headers = const {},
  4. List<Cookie> cookies = const [],
})

Creates a redirect response to the given location.

Defaults to status code 302 (Found).

Implementation

const PageRedirect(
  this.location, {
  this.statusCode = 302,
  this.headers = const {},
  this.cookies = const [],
});