How can i override vendor/magento/module-offline-shipping/Model/Carrier/Flatrate.php file as i need to add
if($request->getSubtotalIncludingTax() > 25){
return false;
}
code so that if my cart value is > 25 then hide flatrate shipping method
Inside function collectRates(RateRequest $request)