HttpResponse class final
Represents an Http response
Constructors
-
HttpResponse(int? statusCode, Map<
String, dynamic> ? body) -
Constructs an HttpResponse instance with the provided status code
and body.
const
Properties
-
body
→ Map<
String, dynamic> ? -
The body of the HTTP response. Can be a map of
String
todynamic
if a body was received, or null otherwise.final - hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
The status code returned by the HTTP response. Can be null if no status
code was received.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override