dealResponse function
dynamic
dealResponse({
- required Response response,
- required dynamic f(
- Response response
- dynamic url,
Implementation
dealResponse({
required http.Response response,
required f(http.Response response),
url,
}) {
//fixme 增加处理sentry的接口
switch (response.statusCode) {
case 401:
print(jsonDecode(response.body));
break;
case 200:
default:
f(response);
break;
}
}