AuthChecker.general constructor

const AuthChecker.general(
  1. bool lambda(
    1. DioException error
    )
)

general checker

you will provide a lambda which will check dio errors and return whether is an auth error or not.

Implementation

const factory AuthChecker.general(
  bool Function(DioException error) lambda,
) = AuthCheckerGeneralImpl;