RedirectRender constructor

RedirectRender({
  1. required int code,
  2. required String location,
})

Creates an instance of RedirectRender.

The code parameter specifies the HTTP status code for the redirect. The location parameter specifies the URL to which the client is redirected.

Implementation

RedirectRender({required this.code, required this.location});