Response class

Constructors

Response([dynamic data, ResponseType responseType = ResponseType.none, int httpStatusCode = HttpStatus.ok])
const

Properties

data → dynamic
final
hashCode int
The hash code for this object.
no setterinherited
httpStatusCode int
final
responseType ResponseType
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

makeResponse(HttpResponse res) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

download(String fileName, Uint8List bytes) → dynamic
file(String fileName, Uint8List bytes) → dynamic
html(dynamic htmlData) → dynamic
json(dynamic jsonData, [int statusCode = HttpStatus.ok]) → dynamic