handleStatusCode method
void
handleStatusCode(})
override
统一状态码处理
Implementation
@override
void handleStatusCode(int? code,
{Function(String?, String?, Exception)? onFail}) {
if (onFail != null) {
onFail.call(
code.toString(), null, Exception("response statusCode = $code"));
} else {
dealError(
code.toString(), null, Exception("response statusCode = $code"));
}
}