public function getDefaultCountry($store = null)
    {
        /**
         * null  = not cached
         * false = couldn't get country from IP
         */
        if ($store === null && $this->country === null) {
            $country = $this->geoService->getCountry();
            $this->country = $country !== null ? $country : false;
        }
        return $this->country ? $this->country : parent::getDefaultCountry($store);
    }
public function getDefaultCountry($store = null)
    {
        /**
         * null  = not cached
         * false = couldn't get country from IP
         */
        if ($store === null && $this->country === null) {
            $country = $this->geoService->getCountry();
            $this->country = $country !== null ? $country : false;
        }
        return $this->country ? $this->country : parent::getDefaultCountry($store);
    }
public function getDefaultCountry ( $ store = null ) { /**
         * null  = not cached
         * false = couldn't get country from IP
         */ if ( $ store === null && $ this -> country === null ) { $ country = $ this -> geoService -> getCountry ( ) ; $ this -> country = $ country !== null ? $ country : false ; } return $ this -> country ? $ this -> country : parent :: getDefaultCountry ( $ store ) ; }
We prefer not to use a preference for this, but we're not allowed to create a plugin
for Magento\Directory\Helper\Data because it's a virtual type.

We also can't use a plugin on Magento\Checkout\Block\Checkout\AttributeMerger::getDefaultValue because
it's protected, also it would miss a couple of other getDefaultCountry() calls.

@param int|null $store
@return string
We prefer not to use a preference for this but we re not allowed to create a plugin for Magento \ Directory \ Helper \ Data because it s a virtual type .