Redirect.permanentRedirect constructor

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

Performs 'permanent redirect' (status code: 308) redirect

Implementation

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