isUnauthorized property

bool isUnauthorized

Implementation

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