handleStatusCode abstract method

void handleStatusCode(
  1. int? code, {
  2. dynamic onFail(
    1. String?,
    2. String?,
    3. Exception
    )?,
})

统一状态码处理

Implementation

void handleStatusCode(int? code,
    {Function(String?, String?, Exception)? onFail});