getCountryCode static method

String? getCountryCode({
  1. BuildContext? context,
})

Get the country code of the current locale, if available.

Implementation

static String? getCountryCode({BuildContext? context}) {
  return getCurrentLocale(context: context).countryCode;
}