# hasCountry abstract method

bool hasCountry()

Returns true if the locale has a country code.

This method checks whether a country code was specified during locale creation and is not empty.

Example:

    final locale1 = Locale('en', 'US');
    print(locale1.hasCountry()); // Output: true

    final locale2 = Locale('fr');
    print(locale2.hasCountry()); // Output: false

## Implementation

    bool hasCountry();