Response<BodyType> class

Annotations

Constructors

Response(BaseResponse base, BodyType body, {Object error})

Properties

base BaseResponse
final
body → BodyType
final
bodyBytes Uint8List
read-only
bodyString String
read-only
error Object
final
hashCode int
The hash code for this object. [...]
read-only, inherited
headers Map<String, String>
read-only
isSuccessful bool
true if status code is >= 200 && <3 if false, error will contains the response
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
statusCode int
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
replace<NewBodyType>({BaseResponse base, NewBodyType body, Object bodyError}) Response<NewBodyType>
toString() String
A string representation of this object. [...]
inherited

Operators

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