name static method

String? name(
  1. {Locale? locale}
)

Returns the exended name for the given locale or if not provided, device's locale.

Example: (United States, Portugal, etc.)

Implementation

static String? name({Locale? locale}) {
  String? code = _resolveLocale(locale);
  return CountryDetails.fromMap(codes[code!], _localizedCountryNames[code])
      .name;
}