AuthChecker.byStatusCode constructor
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;