getFlagEmoji static method
Implementation
static String getFlagEmoji(Locale locale) {
final cc = locale.countryCode ?? _defaultCountry(locale.languageCode);
if (cc == null || cc.length != 2) return '🌐';
return cc
.toUpperCase()
.codeUnits
.map((unit) => String.fromCharCode(0x1F1E6 - 65 + unit))
.join();
}