Response class

A response class of HTTP request.

Constructors

Response({required int statusCode, required String body, required List<int> bodyBytes})
const

Properties

body String
Response body as a string.
final
bodyBytes List<int>
Response body as a list of bytes.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
The status code of response.
final

Methods

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