ApiResponse class abstract
Defines a response to a api request.
ApiResponse contains header information as well as the content data, as well as the logic to transform the data into response data sent via http.
Constructors
- ApiResponse(int statusCode)
- ApiResponse.dynamic(dynamic body, {TransferBean? bean, int statusCode = 200})
-
Automatically creates the corresponding ApiResponse implementation for
body
.factory
Properties
- 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
-
getter/setter pair
Methods
-
getData(
) → Stream< List< int> > -
getHeaders(
) → Map< String, List< String> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toHttpResponse(
Uri requestUrl) → HttpResponse -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited