Response<BodyType> constructor
const
Response<BodyType> (
- BaseResponse base,
- BodyType? body, {
- Object? error,
A http.BaseResponse wrapper representing a response of a Chopper network call.
@GET(path: '/something')
Future<Response> fetchSomething();
@GET(path: '/items/{id}')
Future<Response<Item>> fetchItem();
Implementation
const Response(this.base, this.body, {this.error});