RedirectRender class

A class that implements the Render interface to handle HTTP redirects.

Implemented types

Constructors

RedirectRender({required int code, required String location})
Creates an instance of RedirectRender.

Properties

code int
The HTTP status code for the redirect. Must be a valid redirect status code (3xx) or 201 (Created).
final
hashCode int
The hash code for this object.
no setterinherited
location String
The URL to which the client is redirected.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Response response) → void
Overrides the render method from the Render interface.
override
toString() String
A string representation of this object.
inherited
writeContentType(Response response) → void
Overrides the writeContentType method from the Render interface.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited