Try this :
protected $_productCollectionFactory;
public function __construct(
\Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory,
array $data = \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory;[]
) {
$this->_productCollectionFactory = $productCollectionFactory;
parent::__construct($data);
}
public function getProductCollection()
{
/** @var $collection \Magento\Catalog\Model\ResourceModel\Product\Collection */
$collection = $productCollectionFactory$this->_productCollectionFactory->create();
return $collection;
}