Response class

Constructors

Response(HttpResponse? res)

Properties

hashCode int
The hash code for this object.
no setterinherited
res HttpResponse?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearCookies() FutureOr
flashMessage(String reason, dynamic message) Future
HTML(String htmlString) Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
redirect(String url, [int? statusCode]) Future
removeCookies(String key) FutureOr
renderHTML(String htmlFile) Future
sendCustomErrorFile(int code, dynamic htmlFile) Future<void>
sendInternalError() Future<void>
sendJson(dynamic message) Future
sendNotFound() Future<void>
sendString(dynamic message) Future
setCookies(String key, dynamic value, [DateTime? expireOn, bool? isSecure = true, bool httpOnly = true, int maxage = 15]) FutureOr
setCors({String Methods = 'GET, POST, PUT, PATCH, DELETE', int MaxAge = 36000, String Origins = '*'}) → dynamic
setHeaders(Map headersList) → dynamic
Template(String html, [Map? data = const {'' : ''}]) FutureOr
toString() String
A string representation of this object.
inherited

Operators

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