Response class

Low-level API response object.

Constructors

Response(int statusCode, String body, {String? warning})
Creates a new Response object.

Properties

body String
The body of the response.
final
bodyAsList List
no setter
bodyAsMap Map<String, dynamic>
Returns the body parsed as a Map.
no setter
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 HTTP status code of the response.
final
warning String?
The warning extracted from the HTTP headers of the response.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
throwIfStatusNotOK({required String message}) → void
toString() String
A string representation of this object.
inherited

Operators

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