I have canceled
vendor magento module-checkout CustomerData Cart.php
File in my custom add-on using di.xml using the following code:
It is working too. I can get SectionData defined in my custom Cart.php file in Minicart with success.
but this removes the Total from my Minicart, which worked fine with the default value of Cart.php.
Please, suggest if I am doing something wrong in the replacement file.