Response<BodyType> class

Annotations
  • @immutable

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
headers → Map<String, String>
read-only
isSuccessful → bool
true if status code is >= 200 && <3 if false, error will contains the response
read-only
statusCode → int
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited