emojis 0.8.0 emojis: ^0.8.0 copied to clipboard
Emojis for Dart! This package contain all unicode 12.1 emojis (2020)!
import 'package:emojis/emojis.dart';
import 'package:emojis/emoji.dart';
main() {
print('I ${Emojis.greenHeart} ${Emojis.directHit}'); // I ๐ ๐ฏ
Emoji smile = Emoji.byName('Grinning Face'); // get a emoji by its name
print(smile.name);
// 'Grinning Face' name of emoji
print(smile.char);
// '๐' character of emoji
print(smile.emojiGroup);
// EmojiGroup.smileysEmotion group of emoji
print(smile.emojiSubgroup);
// EmojiSubgroup.faceSmiling sub group of emoji
var womanBlond = Emoji.byChar(Emojis.womanBlondHair); // get a emoji by its character ๐ฑโโ๏ธ
var blondyBlackLady = womanBlond.newSkin(fitzpatrick.dark); // get blondy in black
print(blondyBlackLady); // ๐ฑ๐ฟโโ๏ธ
var emList = Emoji.all(); // list of all Emojis
print(Emoji.disassemble(Emojis.mechanic)); // ['๐ง', '๐ง']
print(Emoji.assemble([Emojis.person, Emojis.laptop])); // ๐งโ๐ป
print(Emoji.modify('๐', fitzpatrick.light)); // ๐๐ป
print(Emoji.stabilize(Emojis.womanPoliceOfficerMediumDarkSkinTone)); //๐ฎ๐พโโ๏ธ => ๐ฎโโ๏ธ Woman Police Officer with no special skin tone
print(Emoji.stabilize(Emojis.womanPoliceOfficerMediumDarkSkinTone, skin: false, gender: true)); //๐ฎ๐พโโ๏ธ => ๐ฎ no gender! still medium dark
Emoji.byKeyword('love'); // returns list of lovely emojis :)
// (๐ฅฐ, ๐, ๐, ๐, ๐, ๐ค, ๐ป, ๐ฝ, ๐, ๐, ๐, ๐, ๐, ๐, ๐, ๐, ๐, ..., ๐, โพ)
print(Emoji.byGroup(EmojiGroup.foodDrink)); // returns emojis in Food and Drink group
// (๐, ๐, ๐, ๐, ๐, ๐, ๐, ๐ฅญ, ๐, ๐, ๐, ๐, ๐, ๐, ๐ฅ, ๐
, ๐ฅฅ, ๐ฅ, ...)
print(Emoji.bySubgroup(EmojiSubgroup.money)); // returns emojis in Money subgroup
// (๐ฐ, ๐ด, ๐ต, ๐ถ, ๐ท, ๐ธ, ๐ณ, ๐งพ, ๐น)
}