assemble static method
assemble emojis with emojiChars
codes.
Implementation
static String assemble (List<String> emojiChars){
final codeCharPoints = <int>[];
for (var i = 0; i < emojiChars.length; i++) {
if (i != 0 && !isFitzpatrick(emojiChars[i-1])){
codeCharPoints.add(ZWJ);
}
final emojiRunes = emojiChars[i].runes.toList();
codeCharPoints.addAll(emojiRunes);
}
codeCharPoints.add(variationSelector16);
return String.fromCharCodes(codeCharPoints);
}