countryCode property

String? get countryCode

The region subtag of the Locale Identifier, null if absent.

It is syntactically valid, normalized (has correct case) and canonical (deprecated tags have been replaced), but not necessarily valid (the region might not exist) because the list of valid regions changes with time.

Implementation

String? get countryCode;