isUnauthorized property

bool get isUnauthorized

Implementation

bool get isUnauthorized =>
    type == DioExceptionType.badResponse && response?.statusCode == 401;