disassemble static method
disassemble emoji
to list of emojis, without skin tones if noSkin
be true
.
Implementation
static List<String> disassemble(String emoji, {bool noSkin = false}){
final emojiRunes = emoji.runes.toList();
emojiRunes.removeWhere((codeChar) => ZeroWidthCharCodes.contains(codeChar) || (noSkin && _isFitzpatrickCode(codeChar)));
return emojiRunes.map((char) => String.fromCharCode(char)).toList();
// return emoji.runes.toList()..removeWhere((codeChar) => ZeroWidthCharCodes.contains(codeChar) || (noSkin && _isFitzpatrickCode(codeChar))).map((char) => String.fromCharCode(char)).toList()
}