countryEmoji property
Returns a new string with the flag of the specified country code.
Implementation
String get countryEmoji {
final List<String> characters = toUpperCase().split('');
final Iterable<int> characterCodes = characters.map((String char) => 127397 + char.codeUnits.first);
return String.fromCharCodes(characterCodes);
}