assertSuccessfulResponse function
- Response response
Throws if the given response is not successful.
Implementation
void assertSuccessfulResponse(Response response) {
if (!response.isSuccessful) {
throw response.error as Object;
}
}
Throws if the given response is not successful.
void assertSuccessfulResponse(Response response) {
if (!response.isSuccessful) {
throw response.error as Object;
}
}