AuthChecker.byStatusCode constructor

const AuthChecker.byStatusCode(
  1. bool statusCode(
    1. int statusCode
    )
)

byStatusCode checker

it will categorize matched given status codes as unauthorized.

note: it will ignore errors with null DioException.response.

note: it will ignore error type of other than DioExceptionType.response.

note: it will ignore null status code.

Implementation

const factory AuthChecker.byStatusCode(
  bool Function(int statusCode) statusCode,
) = AuthCheckerByStatusCodeImpl;