How to hide all other shipping methods when Free Shipping available on the cart page

How to hide all other shipping methods when Free Shipping available on the cart page

When you choose this option, the cart page of your e-commerce store will stop rendering all shipping methods other than ‘free shipping’, if free shipping is applicable on the cart.
For Example:-
Let’s say that you are giving free shipping services in your city of business, and have enabled hide shipping for your shop. In this case, when a customer will add his/her location as the
same city, s/he becomes eligible for the free shipping facility.
Now, when this plugin is enabled, the hide shipping plugin will hide all other shipping methods and show him only the free shipping method on the cart page.