isUnauthorized property Null safety

bool isUnauthorized

Implementation

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