PageRedirect.permanent constructor

const PageRedirect.permanent(
  1. String location, {
  2. List<Cookie> cookies = const [],
})

Creates a permanent redirect (301 Moved Permanently).

Use this when a resource has permanently moved to a new location. Browsers will cache this redirect.

Implementation

const PageRedirect.permanent(
  String location, {
  List<Cookie> cookies = const [],
}) : this(location, statusCode: 301, cookies: cookies);