disassemble static method

List<String> disassemble(
  1. String emoji, {
  2. bool noSkin = false,
})

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()
}