emoji_extension

Creator: coderz1093

Last updated:

Add to Cart

Description:

emoji extension

Emojis for Dart Unicode 15.1
+
One, yet powerful emojis String extension






















Features #

Contains over 5,000 emojis from Unicode 15.1 💪
Supports:

shorcodes: Discord, Github, Slack 🫡
skin tone variations: 👍 👍🏻 👍🏼 👍🏽 👍🏾 👍🏿
hair style variations: 🦰 🦱 🦳 🦲
multi-person: 👨‍👩‍👧‍👦


Provides Emojis collection that has all the info about each emoji:

value: 😆
unicode: 1F606
name: Grinning Squinting Face
apple name: Grinning Face with Squinting Eyes
also known as: ><, Closed-Eyes Smile, Big Grin, Laughing, XD
group: Smileys & Emotion
subgroup: face-smiling
version: 6.0
status: fully-qualified
shortcodes:

CLDR: grinning_squinting_face
Discord: laughing, satisfied
Github: laughing, satisfied
Slack: laughing, satisfied




Provides emojis extension to interact with emojis within any text. Quick overview of just a few possibilities:

'text😀text🤦🏾‍♀️text'.emojis
.contains // true
.only // false
.onlyOne // false
.count // 2
.split // [text, text, text]
.remove // texttexttext
.extract // [😀, 🤦🏾‍♀️]
.replace('-') // text-text-text
.first
.value // 😀
.unicode // 1F600
.name // Grinning Face
... // and many more

// to Slack shortcodes:
'😀text🤦🏾‍♀️'.emojis.toSlackShortcodes(); // :grinning:text:woman-facepalming::skin-tone-5:

// from Slack shortcodes:
':grinning:text:woman-facepalming::skin-tone-5:'.emojis.fromShortcodes(); // 😀text🤦🏾‍♀️
copied to clipboard

Provides Emoji class equipped with numerous properties and getters for your convenience:

Emoji('❤️').shortcode; // :red_heart:

Emoji('🦊').isAnimal; // true

Emoji('👪').isMultiPerson; // true

Emoji('👍🏻').hasSkinTone; // true

Emoji('😃').hasFace; // true

... // and many more
copied to clipboard
YouTube Video Tutorial



Table of contents #
Import import 'package:emoji_extension/emoji_extension.dart'; and you've got 2 benefits:



1️⃣ Emojis collection
______________________________________

all

names
appleNames
alsoKnownAs
shortcodes

CLDR
Discord
Github
Slack

unicodes
values

getOne()
getOneOrNull()
byColor()
byHairStyle()
bySkinTone()
byGroup()
bySubgroup()
byVersion()
byStatus()
colors
hairStyles
skinTones
groups
subgroups
groupsWithSubgroups
shortcodePlatforms
statuses
versions

______________________________________

Emoji

name
appleName
alsoKnownAs
color
shortcode

CLDR
Discord
Github
Slack

unicode
version
isAnimal
isFlag
isFlower
isFruit
isVegetable
isGeometric
isMan
isWoman
isPerson
isMultiPerson
isSymbol
hasBeard
hasFace
hasColor
hasHairStyle
hasSkinTone
hairStyle
skinTone




2️⃣ Emojis extension
______________________________________________________




contains
count
extract
first
firstOrNull
second
secondOrNull
third
thirdOrNull
fourth
fourthOrNull
fifth
fifthOrNull
sixth
sixthOrNull
penultimate
penultimateOrNull
last
lastOrNull
get

alsoKnownAs
appleNames
names
groups
subgroups
shortcodes

CLDR
Discord
Github
Slack

unicodes

only
onlyOne
remove
removeFirst
removeSecond
removeThird
removeFourth
removeFifth
removeSixth
removePenultimate
removeLast
split




any()
anyOf()
containsOf()
containsExactlyOf()
containsOne()
containsOneOf()
containsExactlyOne()
containsExactlyOneOf()
countWhere()
countWhereIndexed()
every()
firstWhere()
firstWhereIndexed()
firstWhereOrNull()
firstWhereIndexedOrNull()
fold()
foldIndexed()
forEach()
forEachIndexed()
forEachWhile()
forEachIndexedWhile()
join()
map()
mapIndexed()
none()
noneOf()
removeAt()
removeFromEnd()
removeEveryOf()
removeWhere()
removeWhereIndexed()
replace()
replaceWith()
replaceWhere()
replaceWhereIndexed()
skip()
skipLast()
skipWhile()
some()
someOf()
splitMapJoin()
splitWhere()
splitWhereIndexed()
toShortcodes()
fromShortcodes()
lastWhere()
lastWhereIndexed()
lastWhereOrNull()
lastWhereIndexedOrNull()
take()
takeLast()
takeWhile()
where()
whereIndexed()
whereNot()
whereNotIndexed()







Emojis collection #
Full Emojis collection with unicodes, names, apple names, "also known as", groups, subgroups, shortcodes:
Emojis
.all // [Emoji(value: 😀, ...), Emoji(value: 😃, ...), ...]
.values // [😀, 😃, 😄, 😁, 😆, 😅, 🤣, 😂, 🙂, 🙃, 🫠, 😉, 😊, 😇, 🥰, 😍, ...]
.unicodes // [1F600, 1F603, 1F604, 1F601, 1F606, 1F605, 1F923, 1F602, 1F642, ...]
.names // [Grinning Face, Grinning Face with Big Eyes, ...]
.appleNames // [Grinning Face, Grinning Face with Big Eyes, ...]
.alsoKnownAs // [Happy Face, Smiley Face, Grinning Face, ...]
.shortcodes // [:grinning_face:, :grinning_face_with_big_eyes:, ...]
.groups // [Group.smileysAndEmotion, Group.peopleAndBody, Group.component, ...]
.values // [Smileys & Emotion, People & Body, Component, Animals & Nature, ...]
.subgroups // [Subgroup.faceSmiling, Subgroup.faceAffection, Subgroup.faceTongue, ...]
.values // [face-smiling, face-affection, face-tongue, face-hand, ...]
.groupsWithSubgroups // {Group.smileysAndEmotion: [Subgroup.faceSmiling, ...], ...}
.values // {Smileys & Emotion: [face-smiling, ...], ...}
.shortcodePlatforms // [Default, CLDR, Discord, Github, Slack]
.versions // [Version.v6_0, Version.v7_0, Version.v8_0, Version.v9_0, ...]
.values // [6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 12.1, 13.0, ...]
.statuses // [Status.fullyQualified, Status.minimallyQualified, ...]
.values // [fully-qualified, minimally-qualified, unqualified, ...]
copied to clipboard
↑ Table of contents ↑
Emojis.all #
Emojis.all /* [
Emoji(
value: 😀,
unicode: 1F600,
name: Grinning Face,
appleName: Grinning Face,
alsoKnownAs: [Happy Face, Smiley Face],
group: Smileys & Emotion,
subgroup: face-smiling,
version: 8.0,
status: fully-qualified,
shortcodes: [
Shortcode(
platform: Default,
values: [grinning_face]
),
Shortcode(
platform: CLDR,
values: [grinning_face]
),
Shortcode(
platform: Discord,
values: [grinning]
),
Shortcode(
platform: Github,
values: [grinning]
),
Shortcode(
platform: Slack,
values: [grinning]
)]
),
Emoji(
value: 😃,
unicode: 1F603,
name: Grinning Face with Big Eyes,
appleName: Grinning Face with Big Eyes,
alsoKnownAs: [Grinning Face, Happy Face, Happy, Smiley Face]
group: Smileys & Emotion,
subgroup: face-smiling,
version: 6.0,
status: fully-qualified
shortcodes: [...]
)
...
] */
copied to clipboard
↑ Table of contents ↑
Emojis.all.names
Emojis.all.names // [Grinning Face, Grinning Face with Big Eyes, ...]
.first // Grinning Face
.second // Grinning Face with Big Eyes
.third // Grinning Face with Smiling Eyes
.fourth // Beaming Face with Smiling Eyes
.fifth // Grinning Squinting Face
.sixth // Grinning Face with Sweat
.penultimate // Flag: Scotland
.last // Flag: Wales
copied to clipboard
↑ Table of contents ↑
Emojis.all.appleNames
Emojis.all.appleNames // [Grinning Face, Grinning Face with Big Eyes, ...]
.first // Grinning Face
.second // Grinning Face with Big Eyes
.third // Grinning Face with Smiling Eyes
.fourth // Beaming Face with Smiling Eyes
.fifth // Grinning Face with Squinting Eyes
.sixth // Grinning Face with Sweat
.penultimate // Flag of Scotland
.last // Flag of Wales
copied to clipboard
↑ Table of contents ↑
Emojis.all.alsoKnownAs
Emojis.all.alsoKnownAs // [Happy Face, Smiley Face, Grinning Face, ...]
.first // Happy Face
.second // Smiley Face
.third // Grinning Face
.fourth // Happy Face
.fifth // Happy
.sixth // Smiley Face
.penultimate // Welsh Flag
.last // Y Ddraig Goch
copied to clipboard
↑ Table of contents ↑
Emojis.all.shortcodes
// Default (emoji name in snake_case)
Emojis.all.shortcodes // [:grinning_face:, :grinning_face_with_big_eyes:, ...]
.first // :grinning_face:
.second // :grinning_face_with_big_eyes:
.third // :grinning_face_with_smiling_eyes:
.fourth // :beaming_face_with_smiling_eyes:
.fifth // :grinning_squinting_face:
.sixth // :grinning_face_with_sweat:
.penultimate // :flag_scotland:
.last // :flag_wales:
copied to clipboard
↑ Table of contents ↑
Emojis.all.cldrShortcodes
// CLDR
Emojis.all.cldrShortcodes // [:grinning_face:, :grinning_face_with_big_eyes:, ...]
.first // :grinning_face:
.second // :grinning_face_with_big_eyes:
.third // :grinning_face_with_smiling_eyes:
.fourth // :beaming_face_with_smiling_eyes:
.fifth // :grinning_squinting_face:
.sixth // :grinning_face_with_sweat:
.penultimate // :flag_scotland:
.last // :flag_wales:
copied to clipboard
↑ Table of contents ↑
Emojis.all.discordShortcodes
// Discord
Emojis.all.discordShortcodes // [:grinning:, :smiley:, :smile:, :grin:, :laughing:, ...]
.first // :grinning:
.second // :smiley:
.third // :smile:
.fourth // :grin:
.fifth // :laughing:
.sixth // :sweat_smile:
.penultimate // :scotland:
.last // :wales:
copied to clipboard
↑ Table of contents ↑
Emojis.all.githubShortcodes
// Github (no skin-tone shortcodes)
Emojis.all.githubShortcodes // [:grinning:, :smiley:, :smile:, :grin:, :laughing:, ...]
.first // :grinning:
.second // :smiley:
.third // :smile:
.fourth // :grin:
.fifth // :laughing:
.sixth // :sweat_smile:
.penultimate // :scotland:
.last // :wales:
copied to clipboard
↑ Table of contents ↑
Emojis.all.slackShortcodes
// Slack
Emojis.all.slackShortcodes // [:grinning:, :smiley:, :smile:, :grin:, :laughing:, ...]
.first // :grinning:
.second // :smiley:
.third // :smile:
.fourth // :grin:
.fifth // :laughing:
.sixth // :sweat_smile:
.penultimate // :flag-scotland:
.last // :flag-wales:
copied to clipboard
↑ Table of contents ↑
Emojis.all.unicodes
Emojis.all.unicodes // [1F600, 1F603, 1F604, 1F601, 1F606, 1F605, 1F923, 1F602, 1F642, ...]
.first // 1F600
.second // 1F603
.third // 1F604
.fourth // 1F601
.fifth // 1F606
.sixth // 1F605
.penultimate // 1F3F4 E0067 E0062 E0073 E0063 E0074 E007F
.last // 1F3F4 E0067 E0062 E0077 E006C E0073 E007F
copied to clipboard
↑ Table of contents ↑
Emojis.all.values
Emojis.all.values // [😀, 😃, 😄, 😁, 😆, 😅, 🤣, 😂, 🙂, 🙃, 🫠, 😉, 😊, 😇, 🥰, 😍, ...]
.first // 😀
.second // 😃
.third // 😄
.fourth // 😁
.fifth // 😆
.sixth // 😅
.penultimate // 🏴󠁧󠁢󠁳󠁣󠁴󠁿
.last // 🏴󠁧󠁢󠁷󠁬󠁳󠁿
copied to clipboard
↑ Table of contents ↑
Emojis.getOne() #
// By value
Emojis.getOne('😀'); // or

// By unicode
Emojis.getOne('1F600'); // or

// By name or apple name (ignore-case)
Emojis.getOne('Grinning Face'); // or
Emojis.getOne('grinning face'); // or

// By also known as (ignore-case)
Emojis.getOne('Happy Face'); // or
Emojis.getOne('happy face'); // or
Emojis.getOne('Smiley Face'); // or
Emojis.getOne('smiley face'); // or

// By shortcode (ignore-colons)
Emojis.getOne(':grinning:'); // or
Emojis.getOne('grinning'); // or
Emojis.getOne('grinning_face'); /* [Emoji(
value: 😀,
unicode: 1F600,
name: Grinning Face,
appleName: Grinning Face,
alsoKnownAs: [Happy Face, Smiley Face],
group: Smileys & Emotion,
subgroup: face-smiling,
version: 8.0,
status: fully-qualified,
shortcodes: [
Shortcode(
platform: Default,
values: [grinning_face]
),
Shortcode(
platform: CLDR,
values: [grinning_face]
),
Shortcode(
platform: Discord,
values: [grinning]
),
Shortcode(
platform: Github,
values: [grinning]
),
Shortcode(
platform: Slack,
values: [grinning]
)]
)] */
copied to clipboard
↑ Table of contents ↑
Emojis.getOneOrNull() #
Equivalent of getOne() with null safety:
Emojis.getOneOrNull('😀')?.name; // Grinning face
Emojis.getOneOrNull('some unknown value')?.name; // null
copied to clipboard
↑ Table of contents ↑
Emojis.byColor() #
Emojis.byColor(Color.blue); // [Emoji(value: 😰, ...), Emoji(value: 💙, ...), ...]
Emojis.byColor(Color.black); // [Emoji(value: 🖤, ...), Emoji(value: 🐈‍⬛, ...), ...]

//or use convenient getters:
Emojis.blue; // [Emoji(value: 😰, ...), Emoji(value: 💙, ...), ...]
Emojis.black; // [Emoji(value: 🖤, ...), Emoji(value: 🐈‍⬛, ...), ...]
copied to clipboard
↑ Table of contents ↑
Emojis.byHairStyle() #
Emojis.byHairStyle(HairStyle.white); // [Emoji(value: 👨‍🦳, ...), Emoji(value: 👨🏻‍🦳, ...), ...]
Emojis.byHairStyle(HairStyle.red); // [Emoji(value: 👨‍🦰, ...), Emoji(value: 👨🏻‍🦰, ...), ...]

//or use convenient getters:
Emojis.whiteHairStyle; // [Emoji(value: 👨‍🦳, ...), Emoji(value: 👨🏻‍🦳, ...), ...]
Emojis.redHairStyle; // [Emoji(value: 👨‍🦰, ...), Emoji(value: 👨🏻‍🦰, ...), ...]
copied to clipboard
↑ Table of contents ↑
Emojis.bySkinTone() #
Emojis.bySkinTone(SkinTone.light); // [Emoji(value: 👋🏻, ...), Emoji(value: 🤚🏻, ...), ...]
Emojis.bySkinTone(SkinTone.dark); // [Emoji(value: 👋🏿, ...), Emoji(value: 🤚🏿, ...), ...]

//or use convenient getters:
Emojis.lightSkinTone; // [Emoji(value: 👋🏻, ...), Emoji(value: 🤚🏻, ...), ...]
Emojis.darkSkinTone; // [Emoji(value: 👋🏿, ...), Emoji(value: 🤚🏿, ...), ...]
copied to clipboard
↑ Table of contents ↑
Emojis.byGroup() #
Emojis.byGroup(Group.smileysAndEmotion); // [Emoji(value: 😀, ...), Emoji(value: 😃, ...), ...]
Emojis.byGroup(Group.foodAndDrink); // [Emoji(value: 🍇, ...), Emoji(value: 🍈, ...), ...]

//or use convenient getters:
Emojis.smileysAndEmotion; // [Emoji(value: 😀, ...), Emoji(value: 😃, ...), ...]
Emojis.foodAndDrink; // [Emoji(value: 🍇, ...), Emoji(value: 🍈, ...), ...]
copied to clipboard
↑ Table of contents ↑
Emojis.bySubgroup() #
Emojis.bySubgroup(Subgroup.faceSmiling); // [Emoji(value: 😀, ...), Emoji(value: 😃, ...), ...]
Emojis.bySubgroup(Subgroup.animalBird); // [Emoji(value: 🦃, ...), Emoji(value: 🐔, ...), ...]

//or use convenient getters:
Emojis.faceSmiling; // [Emoji(value: 😀, ...), Emoji(value: 😃, ...), ...]
Emojis.animalBird; // [Emoji(value: 🦃, ...), Emoji(value: 🐔, ...), ...]
copied to clipboard
↑ Table of contents ↑
Emojis.byVersion() #
Emojis.byVersion(Version.v6_0); // [Emoji(value: 😃, ...), Emoji(value: 😄, ...), ...]
Emojis.byVersion(Version.v15_0); // [Emoji(value: 🫨, ...), Emoji(value: 🩷, ...), ...]

//or use convenient getters:
Emojis.v6_0; // [Emoji(value: 😃, ...), Emoji(value: 😄, ...), ...]
Emojis.v15_0; // [Emoji(value: 🫨, ...), Emoji(value: 🩷, ...), ...]
copied to clipboard
↑ Table of contents ↑
Emojis.byStatus() #
Emojis.byStatus(Status.fullyQualified); // [Emoji(value: 😃, ...), Emoji(value: 😄, ...), ...]

//or use convenient getters:
Emojis.fullyQualified; // [Emoji(value: 😃, ...), Emoji(value: 😄, ...), ...]
copied to clipboard
↑ Table of contents ↑
Emojis.colors #
Emojis.colors // [Color.red, Color.pink, Color.orange, Color.yellow, ...]
.first // Color.red
.second // Color.pink
.third // Color.orange
.fourth // Color.yellow
.fifth // Color.green
.sixth // Color.blue
.penultimate // Color.grey
.last // Color.white
.values // [red, pink, orange, yellow, green, blue, light blue, ...]
.first // red
.second // pink
.third // orange
.fourth // yellow
.fifth // green
.sixth // blue
.penultimate // grey
.last // white
copied to clipboard
↑ Table of contents ↑
Emojis.hairStyles #
Emojis.hairStyles // [HairStyle.blond, HairStyle.red, HairStyle.curly, ...]
.first // HairStyle.blond
.second // HairStyle.red
.third // HairStyle.curly
.fourth // HairStyle.white
.fifth // HairStyle.bald
.sixthOrNull // null
.penultimate // HairStyle.white
.last // HairStyle.bald
.values // [1F471, 1F9B0, 1F9B1, 1F9B3, 1F9B2]
.first // 1F471
.second // 1F9B0
.third // 1F9B1
.fourth // 1F9B3
.fifth // 1F9B2
.sixthOrNull // null
.penultimate // 1F9B3
.last // 1F9B2
copied to clipboard
↑ Table of contents ↑
Emojis.skinTones #
Emojis.skinTones // [SkinTone.light, SkinTone.mediumLight, ...]
.first // SkinTone.blond
.second // SkinTone.mediumLight
.third // SkinTone.medium
.fourth // SkinTone.mediumDark
.fifth // SkinTone.dark
.sixthOrNull // null
.penultimate // SkinTone.mediumDark
.last // SkinTone.dark
.values // [1F3FB, 1F3FC, 1F3FD, 1F3FE, 1F3FF]
.first // 1F3FB
.second // 1F3FC
.third // 1F3FD
.fourth // 1F3FE
.fifth // 1F3FF
.sixthOrNull // null
.penultimate // 1F3FE
.last // 1F3FF
copied to clipboard
↑ Table of contents ↑
Emojis.groups #
Emojis.groups // [Group.smileysAndEmotion, Group.peopleAndBody, Group.component, ...]
.first // Group.smileysAndEmotion
.second // Group.peopleAndBody
.third // Group.component
.fourth // Group.animalsAndNature
.fifth // Group.foodAndDrink
.sixth // Group.travelAndPlaces
.penultimate // Group.symbols
.last // Group.flags
.values // [Smileys & Emotion, People & Body, Component, Animals & Nature, ...]
.first // Smileys & Emotion
.second // People & Body
.third // Component
.fourth // Animals & Nature
.fifth // Food & Drink
.sixth // Travel & Places
.penultimate // Symbols
.last // Flags
copied to clipboard
↑ Table of contents ↑
Emojis.subgroups #
Emojis.subgroups // [Subgroup.faceSmiling, Subgroup.faceAffection, Subgroup.faceTongue, ...]
.first // Subgroup.faceSmiling
.second // Subgroup.faceAffection
.third // Subgroup.faceTongue
.fourth // Subgroup.faceHand
.fifth // Subgroup.faceNeutralSkeptical
.sixth // Subgroup.faceSleepy
.penultimate // Subgroup.countryFlag
.last // Subgroup.subdivisionFlag
.values // [face-smiling, face-affection, face-tongue, face-hand, ...]
.first // face-smiling
.second // face-affection
.third // face-tongue
.fourth // face-hand
.fifth // face-neutral-skeptical
.sixth // face-sleepy
.penultimate // country-flag
.last // subdivision-flag
copied to clipboard
↑ Table of contents ↑
Emojis.groupsWithSubgroups #
Emojis.groupsWithSubgroups; // {Group.smileysAndEmotion: [Subgroup.faceSmiling, ...], ...}
Emojis.groupsWithSubgroupsValues; // {Smileys & Emotion: [face-smiling, ...], ...}
copied to clipboard
↑ Table of contents ↑
Emojis.shortcodePlatforms #
Emojis.shortcodePlatforms // [Default, CLDR, Discord, Github, Slack]
.first // Default
.second // CLDR
.third // Discord
.fourth // Github
.fifth // Slack
.sixthOrNull // null
.penultimate // Github
.last // Slack
copied to clipboard
↑ Table of contents ↑
Emojis.statuses #
Emojis.statuses // [Status.fullyQualified, Status.minimallyQualified, ...]
.first // Status.fullyQualified
.second // Status.minimallyQualified
.third // Status.unqualified
.fourth // Status.component
.fifthOrNull // null
.sixthOrNull // null
.penultimate // Status.unqualified
.last // Status.component
.values // [fully-qualified, minimally-qualified, unqualified, ...]
.first // fully-qualified
.second // minimally-qualified
.third // unqualified
.fourth // component
.fifthOrNull // null
.sixthOrNull // null
.penultimate // unqualified
.last // component
copied to clipboard
↑ Table of contents ↑
Emojis.versions #
Emojis.versions // [Version.v6_0, Version.v7_0, Version.v8_0, Version.v9_0, ...]
.first // Version.v6_0
.second // Version.v7_0
.third // Version.v8_0
.fourth // Version.v9_0
.fifth // Version.v10_0
.sixth // Version.v11_0
.penultimate // Version.v15_0
.last // Version.v15_1
.values // [6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 12.1, 13.0, ...]
.first // 6.0
.second // 7.0
.third // 8.0
.fourth // 9.0
.fifth // 10.0
.sixth // 11.0
.penultimate // 15.0
.last // 15.1
copied to clipboard
↑ Table of contents ↑
Emoji class #
Emoji class equipped with numerous properties and getters for your convenience:
Emoji('🦊')
.name // Fox
.appleName // Fox Face
.unicode // 1F98A
.shortcode // :fox:
.discordShortcode // :fox:
.discordShortcodes // [:fox:, :fox_face:]
.first // :fox:
.second // :fox_face:
.version // Version.v9_0
.value // 9.0
.isAnimal // true
.isFlag // false
.isFlower // false
.isFruit // false
.isGeometric // false
.isMan // false
.isWoman // false
.isVegetable // false
.isPerson // false
.isMultiPerson // false
.isSymbol // false
.isV9_0 // true
.hasBeard // false
.hasFace // true
.hasHairStyle // false
.hasSkinTone // false
.hasColor // false
.color // null
.skinTone // null
.hairStyle // null
copied to clipboard
↑ Table of contents ↑
Emoji.name #
Emoji('😀').name; // Grinning Face
Emoji('🦊').name; // Fox
copied to clipboard
↑ Table of contents ↑
Emoji.appleName #
Emoji('😀').appleName; // Grinning Face
Emoji('🦊').appleName; // Fox Face
copied to clipboard
↑ Table of contents ↑
Emoji.alsoKnownAs #
Emoji('😀').alsoKnownAs; // [Happy Face, Smiley Face]
Emoji('🦊').alsoKnownAs; // [Fox]
copied to clipboard
↑ Table of contents ↑
Emoji.color #
Emoji('🔴').color; // Color.red
Emoji('😀').color; // null
copied to clipboard
↑ Table of contents ↑
Emoji.shortcode #
Emoji('😀').shortcode; // :grinning_face:
Emoji('🦊').shortcode; // :fox:
copied to clipboard
↑ Table of contents ↑
Emoji.cldrShortcode #
Emoji('😀').cldrShortcode; // :grinning_face:
Emoji('🦊').cldrShortcode; // :fox:
copied to clipboard
↑ Table of contents ↑
Emoji.discordShortcode #
Emoji('😀').discordShortcode; // :grinning:
Emoji('🦊').discordShortcode; // :fox:
copied to clipboard
↑ Table of contents ↑
Emoji.githubShortcode #
Emoji('😀').githubShortcode; // :grinning:
Emoji('🦊').githubShortcode; // :fox_face:
copied to clipboard
↑ Table of contents ↑
Emoji.slackShortcode #
Emoji('😀').slackShortcode; // :grinning:
Emoji('🦊').slackShortcode; // :fox_face:
copied to clipboard
↑ Table of contents ↑
Emoji.unicode #
Emoji('😀').unicode; // 1F600
Emoji('🦊').unicode; // 1F98A
copied to clipboard
↑ Table of contents ↑
Emoji.version #
Emoji('😀').version; // Version.v8_0
Emoji('🦊').version; // Version.v9_0
copied to clipboard
↑ Table of contents ↑
Emoji.isAnimal #
Emoji('🦊').isAnimal; // true
Emoji('😀').isAnimal; // false
copied to clipboard
↑ Table of contents ↑
Emoji.isFlag #
Emoji('🏁').isFlag; // true
Emoji('😀').isFlag; // false
copied to clipboard
↑ Table of contents ↑
Emoji.isFlower #
Emoji('💐').isFlower; // true
Emoji('😀').isFlower; // false
copied to clipboard
↑ Table of contents ↑
Emoji.isFruit #
Emoji('🍇').isFruit; // true
Emoji('😀').isFruit; // false
copied to clipboard
↑ Table of contents ↑
Emoji.isVegetable #
Emoji('🍆').isVegetable; // true
Emoji('😀').isVegetable; // false
copied to clipboard
↑ Table of contents ↑
Emoji.isGeometric #
Emoji('🔴').isGeometric; // true
Emoji('😀').isGeometric; // false
copied to clipboard
↑ Table of contents ↑
Emoji.isMan #
Emoji('👨').isMan; // true
Emoji('👩').isMan; // false
Emoji('🔴').isMan; // false
copied to clipboard
↑ Table of contents ↑
Emoji.isWoman #
Emoji('👩').isWoman; // true
Emoji('👨').isWoman; // false
Emoji('🔴').isWoman; // false
copied to clipboard
↑ Table of contents ↑
Emoji.isPerson #
Emoji('🙍').isPerson; // true
Emoji('🔴').isPerson; // false
copied to clipboard
↑ Table of contents ↑
Emoji.isMultiPerson #
Emoji('👪').isMultiPerson; // true
Emoji('👨').isMultiPerson; // false
Emoji('🔴').isMultiPerson; // false
copied to clipboard
↑ Table of contents ↑
Emoji.isSymbol #
Emoji('🏧').isSymbol; // true
Emoji('😀').isSymbol; // false
copied to clipboard
↑ Table of contents ↑
Emoji.hasBeard #
Emoji('🧔').hasBeard; // true
Emoji('🧑').hasBeard; // false
Emoji('😀').hasBeard; // false
copied to clipboard
↑ Table of contents ↑
Emoji.hasFace #
Emoji('😀').hasFace; // true
Emoji('🌚').hasFace; // true
Emoji('🔴').hasFace; // false
copied to clipboard
↑ Table of contents ↑
Emoji.hasColor #
Emoji('🔴').hasColor; // true
Emoji('🟩').hasColor; // true
Emoji('😀').hasColor; // false
copied to clipboard
↑ Table of contents ↑
Emoji.hasHairStyle #
Emoji('👨‍🦰').hasHairStyle; // true
Emoji('👨').hasHairStyle; // false
Emoji('🔴').hasHairStyle; // false
copied to clipboard
↑ Table of contents ↑
Emoji.hairStyle #
Emoji('👨‍🦳').hairStyle; // HairStyle.white
Emoji('👨').hairStyle; // null
Emoji('🔴').hasHairStyle; // null
copied to clipboard
↑ Table of contents ↑
Emoji.hasSkinTone #
Emoji('👩🏻').hasSkinTone; // true
Emoji('👩').hasSkinTone; // false
Emoji('🔴').hasSkinTone; // false
copied to clipboard
↑ Table of contents ↑
Emoji.skinTone #
Emoji('👩🏻').skinTone; // SkinTone.light
Emoji('👩').skinTone; // null
Emoji('🔴').skinTone; // null
copied to clipboard
↑ Table of contents ↑
emojis extension #
One emojis extension that you can use to interact with emojis within any text:
'text😀text🤦🏾‍♀️text'.emojis
.contains // true
.only // false
.onlyOne // false
.count // 2
.split // [text, text, text]
.remove // texttexttext
.removeFirst // texttext🤦🏾‍♀️text
.removeSecond // text😀texttext
.removePenultimate // texttext🤦🏾‍♀️text
.removeLast // text😀texttext
.extract // [😀, 🤦🏾‍♀️]
.first // 😀
.second // 🤦🏾‍♀️
.thirdOrNull // null
.penultimate // 😀
.last // 🤦🏾‍♀️
.any((e) => e.value == '😀') // true
// or
.some((e) => e.value == '😀') // true
.anyOf(['😀', '👍🏻']) // true
// or
.someOf(['😀', '👍🏻']) // true
.every((e) => e.value == '😀') // false
.containsOf(['😀', '👍🏻']) // false
.containsOne((e) => e.value == '😀') // true
.none((e) => e.value == '👍🏻') // true
.noneOf(['😀', '👍🏻']) // false
.countWhere((e) => e.value == '🤦🏾‍♀️') // 1
.removeAt(0) // texttext🤦🏾‍♀️text
.removeFromEnd(0) // text😀texttext
.removeEveryOf(['😀', '🤦🏾‍♀️']) // texttexttext
.removeWhere((e) => e.value == '🤦🏾‍♀️') // text😀texttext
.replace('-') // text-text-text
.replaceWith({'😀':'ABC' , '🤦🏾‍♀️':'123'}) // textABCtext123text
.replaceWhere((e) => e.value == '🤦🏾‍♀️' ? '123' : null) // text😀text123text
.splitWhere((e) => e.value == '😀'); // [text, text🤦🏾‍♀️text]
.splitMapJoin(
onMatch: (_) => '_emoji_',
onNonMatch: (s) => s.toUpperCase(),
) // TEXT_emoji_TEXT_emoji_TEXT
.forEach((e) => print(e.value)) // 😀 🤦🏾‍♀️
.map((e) => e.value) // [😀, 🤦🏾‍♀️]
.where((e) => e.value == '😀') // Emoji(value: 😀, ...)
.take(1) // [Emoji(value: 😀, ...)]
.takeLast(1) // [Emoji(value: 🤦🏾‍♀️, ...)]
.skip(1) // [Emoji(value: 🤦🏾‍♀️, ...)]
.skipLast(1) // [Emoji(value: 😀, ...)]
.join((e) => e.value, separator: '.', prefix: 'prefix', suffix: 'suffix') // prefix😀.🤦🏾‍♀️suffix
.get // [Emoji(value: 😀, ...), Emoji(value: 🤦🏾‍♀️, ...)]
.values // [😀, 🤦🏾‍♀️]
.unicodes // [1F600, 1F926 1F3FE 200D 2640 FE0F]
.first // 1F600
.second // 1F926 1F3FE 200D 2640 FE0F
.names // [Grinning Face, Woman Facepalming: Medium-Dark Skin Tone]
.appleNames // [Grinning Face]
.alsoKnownAs // [Happy Face, Smiley Face]
.groups // [Group.smileysAndEmotion, Group.peopleAndBody]
.values // [Smileys & Emotion, People & Body]
.subgroups // [Subgroup.faceSmiling, Subgroup.personGesture]
.values // [face-smiling, person-gesture]
.shortcodes // [:grinning_face:, :woman_facepalming_medium_dark_skin_tone:]
.cldrShortcodes // [:grinning_face:, :woman_facepalming_tone4:]
.discordShortcodes // [:grinning:, :woman_facepalming_tone4:]
.githubShortcodes // [:grinning:]
.slackShortcodes // [:grinning:, :woman-facepalming::skin-tone-5:]
.first // Emoji(value: 😀, ...)
.value // 😀
.unicode // 1F600
.name // Grinning Face
.appleName // Grinning Face
.alsoKnownAs // [Happy Face, Smiley Face]
.group // Group.smileysAndEmotion
.value // Smileys & Emotion
.subgroup // Subgroup.faceSmiling
.value // face-smiling
.shortcode // :grinning_face:
.cldrShortcode // :grinning_face:
.discordShortcode // :grinning:
.githubShortcode // :grinning:
.slackShortcode // :grinning:
copied to clipboard
↑ Table of contents ↑
emojis.contains #
'😀text🤦🏾‍♀️'.emojis.contains; // true
'text'.emojis.contains; // false
copied to clipboard
↑ Table of contents ↑
emojis.count #
'😀text🤦🏾‍♀️'.emojis.count; // 2
copied to clipboard
↑ Table of contents ↑
emojis.extract #
'🔺️te🟡xt🟩te🔷xt'.emojis.extract // [🔺, 🟡, 🟩, 🔷]
.first // 🔺
.second // 🟡
.third // 🟩
.fourth // 🔷
.fifthOrNull // null
.sixthOrNull // null
.penultimate // 🟩
.last // 🔷
copied to clipboard
↑ Table of contents ↑
emojis.first #
'🔴te👍🏻xt👍🏼te👍🏽xt👍🏾te👍🏿xt'.emojis.first // Emoji(value: 🔴, ...)
.value // 🔴
.name // Red Circle
...
copied to clipboard
↑ Table of contents ↑
emojis.firstOrNull #
'🔴te👍🏻xt👍🏼te👍🏽xt👍🏾te👍🏿xt'.emojis.firstOrNull // Emoji(value: 🔴, ...)

'text'.emojis.firstOrNull; // null
copied to clipboard
↑ Table of contents ↑
emojis.second #
'👍️te🔴xt👍🏼te👍🏽xt👍🏾te👍🏿xt'.emojis.second // Emoji(value: 🔴, ...)
.value // 🔴
.name // Red Circle
...
copied to clipboard
↑ Table of contents ↑
emojis.secondOrNull #
'👍️te🔴xt👍🏼te👍🏽xt👍🏾te👍🏿xt'.emojis.secondOrNull // Emoji(value: 🔴, ...)

'text'.emojis.secondOrNull; // null
copied to clipboard
↑ Table of contents ↑
emojis.third #
'👍️te🔴xt👍🏼te👍🏽xt👍🏾te👍🏿xt'.emojis.third // Emoji(value: 🔴, ...)
.value // 🔴
.name // Red Circle
...
copied to clipboard
↑ Table of contents ↑
emojis.thirdOrNull #
'👍️te👍🏻xt🔴te👍🏽xt👍🏾te👍🏿xt'.emojis.thirdOrNull // Emoji(value: 🔴, ...)

'text'.emojis.thirdOrNull; // null
copied to clipboard
↑ Table of contents ↑
emojis.fourth #
'👍️te👍🏻xt👍🏼te🔴xt👍🏾te👍🏿xt'.emojis.fourth // Emoji(value: 🔴, ...)
.value // 🔴
.name // Red Circle
...
copied to clipboard
↑ Table of contents ↑
emojis.fourthOrNull #
'👍️te👍🏻xt👍🏼te🔴xt👍🏾te👍🏿xt'.emojis.fourthOrNull // Emoji(value: 🔴, ...)

'text'.emojis.fourthOrNull; // null
copied to clipboard
↑ Table of contents ↑
emojis.fifth #
'👍️te👍🏻xt👍🏼te👍🏽xt🔴te👍🏿xt'.emojis.fifth // Emoji(value: 🔴, ...)
.value // 🔴
.name // Red Circle
...
copied to clipboard
↑ Table of contents ↑
emojis.fifthOrNull #
'👍️te👍🏻xt👍🏼te👍🏽xt🔴te👍🏿xt'.emojis.fifthOrNull // Emoji(value: 🔴, ...)

'text'.emojis.fifthOrNull; // null
copied to clipboard
↑ Table of contents ↑
emojis.sixth #
'👍️te👍🏻xt👍🏼te👍🏽xt👍🏾te🔴xt'.emojis.sixth // Emoji(value: 🔴, ...)
.value // 🔴
.name // Red Circle
...
copied to clipboard
↑ Table of contents ↑
emojis.sixthOrNull #
'👍️te👍🏻xt👍🏼te👍🏽xt👍🏾te🔴xt'.emojis.sixthOrNull // Emoji(value: 🔴, ...)

'text'.emojis.sixthOrNull; // null
copied to clipboard
↑ Table of contents ↑
emojis.penultimate #
'👍️te👍🏻xt👍🏼te👍🏽xt🔴te👍🏿xt'.emojis.penultimate // Emoji(value: 🔴, ...)
.value // 🔴
.name // Red Circle
...
copied to clipboard
↑ Table of contents ↑
emojis.penultimateOrNull #
'👍️te👍🏻xt👍🏼te👍🏽xt🔴te👍🏿xt'.emojis.penultimateOrNull // Emoji(value: 🔴, ...)

'text'.emojis.penultimateOrNull; // null
copied to clipboard
↑ Table of contents ↑
emojis.last #
'👍️te👍🏻xt👍🏼te👍🏽xt👍🏾te🔴xt'.emojis.last // Emoji(value: 🔴, ...)
.value // 🔴
.name // Red Circle
...
copied to clipboard
↑ Table of contents ↑
emojis.lastOrNull #
'👍️te👍🏻xt👍🏼te👍🏽xt👍🏾te🔴xt'.emojis.lastOrNull // Emoji(value: 🔴, ...)

'text'.emojis.lastOrNull; // null
copied to clipboard
↑ Table of contents ↑
emojis.get #
'😀text'.emojis.get; /* [Emoji(
value: 😀,
unicode: 1F600,
name: Grinning Face,
appleName: Grinning Face,
alsoKnownAs: [Happy Face, Smiley Face],
group: Smileys & Emotion,
subgroup: face-smiling,
version: 8.0,
status: fully-qualified,
shortcodes: [
Shortcode(
platform: Default,
values: [grinning_face]
),
Shortcode(
platform: CLDR,
values: [grinning_face]
),
Shortcode(
platform: Discord,
values: [grinning]
),
Shortcode(
platform: Github,
values: [grinning]
),
Shortcode(
platform: Slack,
values: [grinning]
)]
)] */
copied to clipboard
↑ Table of contents ↑
emojis.get.alsoKnownAs
'😀text'.emojis.get.alsoKnownAs // [Happy Face, Smiley Face]
.first // Happy Face
.penultimate // Happy Face
.second // Smiley Face
.last // Smiley Face
copied to clipboard
↑ Table of contents ↑
emojis.get.appleNames
'😀text🤦🏾‍♀️'.emojis.get.appleNames // [Grinning Face]
.first // Grinning Face
.penultimate // Grinning Face
.secondOrNull // null
.lastOrNull // null
copied to clipboard
↑ Table of contents ↑
emojis.get.names
'😀text🤦🏾‍♀️'.emojis.get.names // [Grinning Face, Woman Facepalming: Medium-Dark Skin Tone]
.first // Grinning Face
.penultimate // Grinning Face
.second // Woman Facepalming: Medium-Dark Skin Tone
.last // Woman Facepalming: Medium-Dark Skin Tone
copied to clipboard
↑ Table of contents ↑
emojis.get.groups
'😀text🤦🏾‍♀️'.emojis.get.groups // [Group.smileysAndEmotion, Group.peopleAndBody]
.first // Group.smileysAndEmotion
.penultimate // Group.smileysAndEmotion
.second // Group.peopleAndBody
.last // Group.peopleAndBody
.values // [Smileys & Emotion, People & Body]
.first // Smileys & Emotion
.penultimate // Smileys & Emotion
.second // People & Body
.last // People & Body
copied to clipboard
↑ Table of contents ↑
emojis.get.subgroups
'😀text🤦🏾‍♀️'.emojis.get.subgroups // [Subgroup.faceSmiling, Subgroup.personGesture]
.first // Subgroup.faceSmiling
.penultimate // Subgroup.faceSmiling
.second // Subgroup.personGesture
.last // Subgroup.personGesture
.values // [face-smiling, person-gesture]
.first // face-smiling
.penultimate // face-smiling
.second // person-gesture
.last // person-gesture
copied to clipboard
↑ Table of contents ↑
emojis.get.shortcodes
// Default (emoji name in snake_case)
'😀text🤦🏾‍♀️'.emojis.get.shortcodes; // [:grinning_face:, :woman_facepalming_medium_dark_skin_tone:]
copied to clipboard
↑ Table of contents ↑
emojis.get.cldrShortcodes
// CLDR
'😀text🤦🏾‍♀️'.emojis.get.cldrShortcodes; // [:grinning_face:, :woman_facepalming_tone4:]
copied to clipboard
↑ Table of contents ↑
emojis.get.discordShortcodes
// Discord
'😀text🤦🏾‍♀️'.emojis.get.discordShortcodes; // [:grinning:, :woman_facepalming_tone4:]
copied to clipboard
↑ Table of contents ↑
emojis.get.githubShortcodes
// Github (no skin-tone shortcodes)
'😀text🤦🏾‍♀️'.emojis.get.githubShortcodes; // [:grinning:]
copied to clipboard
↑ Table of contents ↑
emojis.get.slackShortcodes
// Slack
'😀text🤦🏾‍♀️'.emojis.get.slackShortcodes; // [:grinning:, :woman-facepalming::skin-tone-5:]
copied to clipboard
↑ Table of contents ↑
emojis.get.unicodes
'😀text🤦🏾‍♀️'.emojis.get.unicodes // [1F600, 1F926 1F3FE 200D 2640 FE0F]
.first // 1F600
.penultimate // 1F600
.second // 1F926 1F3FE 200D 2640 FE0F
.last // 1F926 1F3FE 200D 2640 FE0F
copied to clipboard
↑ Table of contents ↑
emojis.only #
'😀'.emojis.only; // true
'😀 😀 😀'.emojis.only; // true
'text 😀 😀 😀 text'.emojis.only; // false
'text'.emojis.only; // false
copied to clipboard
↑ Table of contents ↑
emojis.onlyOne #
'😀'.emojis.onlyOne; // true
'😀 😀 😀'.emojis.onlyOne; // false
'text 😀 😀 😀 text'.emojis.onlyOne; // false
'text'.emojis.onlyOne; // false
copied to clipboard
↑ Table of contents ↑
emojis.remove #
'😀text 🤦🏾‍♀️'.emojis.remove; // text
copied to clipboard
↑ Table of contents ↑
emojis.removeFirst #
'🔴te👍🏻xt👍🏼te👍🏽xt👍🏾te👍🏿xt'.emojis.removeFirst; // te👍🏻xt👍🏼te👍🏽xt👍🏾te👍🏿xt
copied to clipboard
↑ Table of contents ↑
emojis.removeSecond #
'👍️te🔴xt👍🏼te👍🏽xt👍🏾te👍🏿xt'.emojis.removeSecond; // 👍️text👍🏼te👍🏽xt👍🏾te👍🏿xt
copied to clipboard
↑ Table of contents ↑
emojis.removeThird #
'👍️te👍🏻xt🔴te👍🏽xt👍🏾te👍🏿xt'.emojis.removeThird; // 👍️te👍🏻xtte👍🏽xt👍🏾te👍🏿xt
copied to clipboard
↑ Table of contents ↑
emojis.removeFourth #
'👍️te👍🏻xt👍🏼te🔴xt👍🏾te👍🏿xt'.emojis.removeFourth; // 👍️te👍🏻xt👍🏼text👍🏾te👍🏿xt
copied to clipboard
↑ Table of contents ↑
emojis.removeFifth #
'👍️te👍🏻xt👍🏼te👍🏽xt🔴te👍🏿xt'.emojis.removeFifth; // 👍️te👍🏻xt👍🏼te👍🏽xtte👍🏿xt
copied to clipboard
↑ Table of contents ↑
emojis.removeSixth #
'👍️te👍🏻xt👍🏼te👍🏽xt👍🏾te🔴xt'.emojis.removeSixth; // 👍️te👍🏻xt👍🏼te👍🏽xt👍🏾text
copied to clipboard
↑ Table of contents ↑
emojis.removePenultimate #
'👍️te👍🏻xt👍🏼te👍🏽xt🔴te👍🏿xt'.emojis.removePenultimate; // 👍️te👍🏻xt👍🏼te👍🏽xtte👍🏿xt
copied to clipboard
↑ Table of contents ↑
emojis.removeLast #
'👍️te👍🏻xt👍🏼te👍🏽xt👍🏾te🔴xt'.emojis.removeLast; // 👍️te👍🏻xt👍🏼te👍🏽xt👍🏾text
copied to clipboard
↑ Table of contents ↑
emojis.split #
'text😀text'.emojis.split; // [text, text]
copied to clipboard
↑ Table of contents ↑
emojis.any() #
'😀text🤦🏾‍♀️'.emojis.any((e) => e.value == '😀'); // true
'😀text🤦🏾‍♀️'.emojis.any((e) => e.value == '👍🏻'); // false
copied to clipboard

Same as: emojis.some()

↑ Table of contents ↑
emojis.anyOf() #
'😀text🤦🏾‍♀️'.emojis.anyOf(['😀']); // true
'😀text🤦🏾‍♀️'.emojis.anyOf(['😀', '👍🏻']); // true
'😀text🤦🏾‍♀️'.emojis.anyOf(['👍🏻']); // false
copied to clipboard

Same as: emojis.someOf()

↑ Table of contents ↑
emojis.containsOf() #
'😀text🤦🏾‍♀️'.emojis.containsOf(['😀']); // true
'😀text🤦🏾‍♀️'.emojis.containsOf(['😀', '🤦🏾‍♀️']); // true
'😀text🤦🏾‍♀️'.emojis.containsOf(['😀', '👍🏻']); // false
'😀text🤦🏾‍♀️'.emojis.containsOf(['👍🏻']); // false
copied to clipboard
↑ Table of contents ↑
emojis.containsExactlyOf() #
'😀text🤦🏾‍♀️'.emojis.containsExactlyOf(['😀']); // false
'😀text🤦🏾‍♀️'.emojis.containsExactlyOf(['😀', '🤦🏾‍♀️']); // true
'😀text🤦🏾‍♀️text😀'.emojis.containsExactlyOf(['😀', '🤦🏾‍♀️']); // true
'😀text🤦🏾‍♀️'.emojis.containsExactlyOf(['👍🏻']); // false
copied to clipboard
↑ Table of contents ↑
emojis.containsOne() #
'😀text🤦🏾‍♀️text😀'.emojis.containsOne((e) => e.value == '🤦🏾‍♀️'); // true
'😀text🤦🏾‍♀️text😀'.emojis.containsOne((e) => e.value == '👍🏻'); // false
'😀text🤦🏾‍♀️text😀'.emojis.containsOne((e) => e.value == '😀'); // false
copied to clipboard
↑ Table of contents ↑
emojis.containsOneOf() #
'😀text🤦🏾‍♀️'.emojis.containsOneOf({'🤦🏾‍♀️'}); // true
'😀text🤦🏾‍♀️'.emojis.containsOneOf({'😀', '🤦🏾‍♀️'}); // true
'😀text🤦🏾‍♀️'.emojis.containsOneOf('😀', '🤦🏾‍♀️', '👍🏻'}); // false
'😀text🤦🏾‍♀️text😀'.emojis.containsOneOf({'😀'}); // false
copied to clipboard
↑ Table of contents ↑
emojis.containsExactlyOne() #
'😀text'.emojis.containsExactlyOne((e) => e.value == '😀'); // true
'😀text🤦🏾‍♀️'.emojis.containsExactlyOne((e) => e.value == '😀'); // false
'text'.emojis.containsExactlyOne((e) => e.value == '😀'); // false
copied to clipboard
↑ Table of contents ↑
emojis.containsExactlyOneOf() #
'😀text🤦🏾‍♀️'.emojis.containsExactlyOneOf({'😀', '🤦🏾‍♀️'}); // true
'😀text🤦🏾‍♀️text😀'.emojis.containsExactlyOneOf({'😀', '🤦🏾‍♀️'}); // false
'😀text🤦🏾‍♀️'.emojis.containsExactlyOneOf({'😀'}); // false
'😀text🤦🏾‍♀️'.emojis.containsExactlyOneOf({'😀', '👍🏻'}); // false
copied to clipboard
↑ Table of contents ↑
emojis.countWhere() #
'😀text🤦🏾‍♀️text😀'.emojis.countWhere((e) => e.value == '😀'); // 2
copied to clipboard
↑ Table of contents ↑
emojis.countWhereIndexed() #
'😀text🤦🏾‍♀️text😀'.emojis.countWhereIndexed((i, e) => i == 0 && e.value == '😀'); // 1
copied to clipboard
↑ Table of contents ↑
emojis.every() #
'😀text😀'.emojis.every((e) => e.value == '😀'); // true
'😀text🤦🏾‍♀️'.emojis.every((e) => e.value == '😀'); // false
'😀text🤦🏾‍♀️'.emojis.every((e) => e.value == '👍🏻'); // false
copied to clipboard
↑ Table of contents ↑
emojis.firstWhere() #
'🤦🏾‍♀️text😀text🤦🏻‍♀️'.emojis.firstWhere((e) => e.name.contains('Woman')); // Emoji(value: 🤦🏾‍♀️, ...)
copied to clipboard
↑ Table of contents ↑
emojis.firstWhereIndexed() #
'🤦🏾‍♀️text😀text🤦🏻‍♀️'.emojis.firstWhereIndexed((i, e) => i > 0 && e.name.contains('Woman')); // Emoji(value: 🤦🏻‍♀️, ...)
copied to clipboard
↑ Table of contents ↑
emojis.firstWhereOrNull() #
'🤦🏾‍♀️text😀text🤦🏻‍♀️'.emojis.firstWhereOrNull((e) => e.name.contains('Woman')); // Emoji(value: 🤦🏾‍♀️, ...)

'🤦🏾‍♀️text😀text🤦🏻‍♀️'.emojis.firstWhereOrNull((e) => e.value == '👍🏻'); // null
copied to clipboard
emojis.firstWhereIndexedOrNull() #
'🤦🏾‍♀️text😀text🤦🏻‍♀️'.emojis.firstWhereIndexedOrNull((i, e) => i == 0 && e.name.contains('Woman')); // Emoji(value: 🤦🏾‍♀️, ...)

'🤦🏾‍♀️text😀text🤦🏻‍♀️'.emojis.firstWhereIndexedOrNull((i, e) => i == 0 && e.value == '😀'); // null
copied to clipboard
↑ Table of contents ↑
emojis.fold() #
'😀text🤦🏾‍♀️'.emojis.fold('start', (p, c) => p + c.value); // start😀🤦🏾‍♀️
copied to clipboard
↑ Table of contents ↑
emojis.foldIndexed() #
'😀text🤦🏾‍♀️'.emojis.foldIndexed('start', (i, p ,c) => '$p${c.value}$i'); // start😀0🤦🏾‍♀️1
copied to clipboard
↑ Table of contents ↑
emojis.forEach() #
'😀text🤦🏾‍♀️'.emojis.forEach((e) => print(e.value)); // 😀 🤦🏾‍♀️
copied to clipboard
↑ Table of contents ↑
emojis.forEachIndexed() #
'😀text🤦🏾‍♀️'.emojis.forEachIndexed(i,e) => print('$i:${e.value}')); // 0:😀 1:🤦🏾‍♀️
copied to clipboard
↑ Table of contents ↑
emojis.forEachWhile() #
'😀text🤦🏾‍♀️text😀'.emojis.forEachWhile((e) {
print(e.value);
return e.value == '😀';
}); // 😀 🤦🏾‍♀️
copied to clipboard
↑ Table of contents ↑
emojis.forEachIndexedWhile() #
'😀text🤦🏾‍♀️text😀'.emojis.forEachIndexedWhile((i, e) {
print('$i:${e.value}');
return e.value == '😀';
}); // 0:😀 1:🤦🏾‍♀️
copied to clipboard
↑ Table of contents ↑
emojis.join() #
'😀text🤦🏾‍♀️'.emojis.join((e) => e.value,
separator: '.',
prefix: 'prefix',
suffix: 'suffix'); // 'prefix😀.🤦🏾‍♀️suffix'
copied to clipboard
↑ Table of contents ↑
emojis.map() #
'😀text🤦🏾‍♀️'.emojis.map((e) => 'Emoji: ${e.name}'); // [Emoji: Grinning Face, Emoji: Woman Facepalming: Medium-Dark Skin Tone]
copied to clipboard
↑ Table of contents ↑
emojis.mapIndexed() #
'😀text🤦🏾‍♀️'.emojis.mapIndexed((i, e) => '$i: ${e.name}'); // [0: Grinning Face, 1: Woman Facepalming: Medium-Dark Skin Tone]
copied to clipboard
↑ Table of contents ↑
emojis.none() #
'😀text🤦🏾‍♀️'.emojis.none((e) => e.value == '👍🏻'); // true
'😀text🤦🏾‍♀️'.emojis.none((e) => e.value == '😀'); // false
copied to clipboard
↑ Table of contents ↑
emojis.noneOf() #
'😀text🤦🏾‍♀️'.emojis.noneOf(['👍🏻']); // true
'😀text🤦🏾‍♀️'.emojis.noneOf(['👍🏻', '🤦🏾‍♀️']); // false
'😀text🤦🏾‍♀️'.emojis.noneOf(['😀', '🤦🏾‍♀️']); // false
copied to clipboard
↑ Table of contents ↑
emojis.removeAt() #
'😀text🤦🏾‍♀️'.emojis.removeAt(0); // text🤦🏾‍♀️
'😀text🤦🏾‍♀️'.emojis.removeAt(10); // 😀text🤦🏾‍♀️
copied to clipboard
↑ Table of contents ↑
emojis.removeFromEnd() #
'😀text🤦🏾‍♀️'.emojis.removeFromEnd(0); // 😀text
'😀text🤦🏾‍♀️'.emojis.removeFromEnd(10); // 😀text🤦🏾‍♀️
copied to clipboard
↑ Table of contents ↑
emojis.removeEveryOf() #
'😀text🤦🏾‍♀️text👍🏻text😀'.emojis.removeEveryOf(['😀', '👍🏻']); // text🤦🏾‍♀️texttext
copied to clipboard
↑ Table of contents ↑
emojis.removeWhere() #
'😀text🤦🏾‍♀️text😀'.emojis.removeWhere((e) => e.value == '😀'); // text🤦🏾‍♀️text
copied to clipboard
↑ Table of contents ↑
emojis.removeWhereIndexed() #
'😀text🤦🏾‍♀️text😀'.emojis.removeWhereIndexed((i, e) => i == 0 && e.value == '😀'); // text🤦🏾‍♀️text😀
copied to clipboard
↑ Table of contents ↑
emojis.replace() #
'😀text🤦🏾‍♀️'.emojis.replace('_'); // _️text_
copied to clipboard
↑ Table of contents ↑
emojis.replaceWith() #
'😀text🤦🏾‍♀️'.emojis.replaceWith({'😀':'ABC', '🤦🏾‍♀️':'123'}); // ABCtext123
copied to clipboard
↑ Table of contents ↑
emojis.replaceWhere() #
'😀text🤦🏾‍♀️'.emojis.replaceWhere((e) => e.value == '🤦🏾‍♀️' ? '123' : null); // 😀text123

'😀text🤦🏾‍♀️'.emojis.replaceWhere((e) => {'😀':'ABC', '🤦🏾‍♀️':'123'}[e.value]); // ABCtext123
copied to clipboard
↑ Table of contents ↑
emojis.replaceWhereIndexed() #
'😀text🤦🏾‍♀️text😀'.emojis.replaceWhereIndexed((i, e) => i == 1 ? '_123_' : null); // 😀text_123_text😀
copied to clipboard
↑ Table of contents ↑
emojis.skip() #
'😀text🤦🏾‍♀️text👍🏻'.emojis.skip(1); // [Emoji(value: 🤦🏾‍♀️, ...), Emoji(value: 👍🏻, ...)]
copied to clipboard
↑ Table of contents ↑
emojis.skipLast() #
'😀text🤦🏾‍♀️text👍🏻'.emojis.skipLast(1); // [Emoji(value: 😀, ...), Emoji(value: 🤦🏾‍♀️, ...)]
copied to clipboard
↑ Table of contents ↑
emojis.skipWhile() #
'😀text🤦🏾‍♀️text👍🏻'.emojis.skipWhile((e) => e.value == '😀'); // [Emoji(value: 🤦🏾‍♀️, ...), Emoji(value: 👍🏻, ...)]
copied to clipboard
↑ Table of contents ↑
emojis.some() #
'😀text🤦🏾‍♀️'.emojis.some((e) => e.value == '😀'); // true
'😀text🤦🏾‍♀️'.emojis.some((e) => e.value == '👍🏻'); // false
copied to clipboard

Same as: emojis.any()

↑ Table of contents ↑
emojis.someOf() #
'😀text🤦🏾‍♀️'.emojis.someOf(['😀']); // true
'😀text🤦🏾‍♀️'.emojis.someOf(['😀', '👍🏻']); // true
'😀text🤦🏾‍♀️'.emojis.someOf(['👍🏻']); // false
copied to clipboard

Same as: emojis.anyOf()

↑ Table of contents ↑
emojis.splitMapJoin() #
'😀text🤦🏾‍♀️'.emojis.splitMapJoin(
onMatch: (_) => '_emoji_',
onNonMatch: (s) => s.toUpperCase(),
); // _emoji_TEXT_emoji_
copied to clipboard
↑ Table of contents ↑
emojis.splitWhere() #
'😀text🤦🏾‍♀️text😀'.emojis.splitWhere((e) => e.value == '🤦🏾‍♀️'); // [😀text, text😀]
copied to clipboard
↑ Table of contents ↑
emojis.splitWhereIndexed() #
'😀text🤦🏾‍♀️text😀'.emojis.splitWhereIndexed((i, e) => i == 1 && e.value == '🤦🏾‍♀️'); // [😀text, text😀]
copied to clipboard
↑ Table of contents ↑
emojis.toShortcodes() #
// Default (emoji name in snake_case)
'😀text🤦🏾‍♀️'.emojis.toShortcodes(); // :grinning_face:text:woman_facepalming_medium_dark_skin_tone:

// CLDR
'😀text🤦🏾‍♀️'.emojis.toCLDRShortcodes(); // :grinning_face:text:woman_facepalming_tone4:

// Discord
'😀text🤦🏾‍♀️'.emojis.toDiscordShortcodes(); // :grinning:text:woman_facepalming_tone4:

// Github (no skin-tone shortcodes)
'😀text🤦🏾‍♀️'.emojis.toGithubShortcodes(); // :grinning:text🤦🏾‍♀️

// Slack
'😀text🤦🏾‍♀️'.emojis.toSlackShortcodes(); // :grinning:text:woman-facepalming::skin-tone-5:
copied to clipboard
↑ Table of contents ↑
emojis.fromShortcodes() #
// Default
':grinning_face:text:woman_facepalming_medium_dark_skin_tone:'.emojis.fromShortcodes(); // 😀text🤦🏾‍♀️

// CLDR
':grinning_face:text:woman_facepalming_tone4:'.emojis.fromShortcodes(); // 😀text🤦🏾‍♀️

// Discord
':grinning:text:woman_facepalming_tone4:'.emojis.fromShortcodes(); // 😀text🤦🏾‍♀️

// Github (no skin-tone shortcodes)
':grinning:text:woman_facepalming:'.emojis.fromShortcodes(); // 😀text🤦‍♀

// Slack
':grinning:text:woman-facepalming::skin-tone-5:'.emojis.fromShortcodes(); // 😀text🤦🏾‍♀️
copied to clipboard
↑ Table of contents ↑
emojis.lastWhere() #
'🤦🏾‍♀️text😀text🤦🏻‍♀️'.emojis.lastWhere((e) => e.name.contains('Woman')); // Emoji(value: 🤦🏻‍♀️, ...)
copied to clipboard
↑ Table of contents ↑
emojis.lastWhereIndexed() #
'🤦🏾‍♀️text😀text🤦🏻‍♀️'.emojis.lastWhereIndexed((i, e) => i == 0 && e.name.contains('Woman')); // Emoji(value: 🤦🏾‍♀️, ...)
copied to clipboard
↑ Table of contents ↑
emojis.lastWhereOrNull() #
'🤦🏾‍♀️text😀text🤦🏻‍♀️'.emojis.lastWhereOrNull((e) => e.name.contains('Woman')); // Emoji(value: 🤦🏻‍♀️, ...)

'🤦🏾‍♀️text😀text🤦🏻‍♀️'.emojis.lastWhereOrNull((e) => e.value == '👍🏻'); // null
copied to clipboard
↑ Table of contents ↑
emojis.lastWhereIndexedOrNull() #
'🤦🏾‍♀️text😀text🤦🏻‍♀️'.emojis.lastWhereIndexedOrNull((i, e) => i == 0 && e.name.contains('Woman')); // Emoji(value: 🤦🏾‍♀️, ...)

'🤦🏾‍♀️text😀text🤦🏻‍♀️'.emojis.lastWhereIndexedOrNull((i, e) => i == 0 && e.value == '😀'); // null
copied to clipboard
↑ Table of contents ↑
emojis.take() #
'😀text🤦🏾‍♀️text👍🏻'.emojis.take(2); // [Emoji(value: 😀, ...), Emoji(value: 🤦🏾‍♀️, ...)]
copied to clipboard
↑ Table of contents ↑
emojis.takeLast() #
'😀text🤦🏾‍♀️text👍🏻'.emojis.takeLast(2); // [Emoji(value: 🤦🏾‍♀️, ...), Emoji(value: 👍🏻, ...)]
copied to clipboard
↑ Table of contents ↑
emojis.takeWhile() #
'😀text🤦🏾‍♀️text👍🏻'.emojis.takeWhile((e) => e.value == '😀'); // [Emoji(value: 😀, ...)]
copied to clipboard
↑ Table of contents ↑
emojis.where() #
'🤦🏾‍♀️text😀text🤦🏻‍♀️'.emojis.where((e) => e.name.contains('Woman')); // [Emoji(value: 🤦🏾‍♀️, ...), Emoji(value: 🤦🏻‍♀️, ...)]
copied to clipboard
↑ Table of contents ↑
emojis.whereIndexed() #
'🤦🏾‍♀️text😀text🤦🏻‍♀️'.emojis.whereIndexed((i, e) => i == 0 && e.name.contains('Woman')); // [Emoji(value: 🤦🏾‍♀️, ...)]
copied to clipboard
↑ Table of contents ↑
emojis.whereNot() #
'🤦🏾‍♀️text😀text🤦🏻‍♀️'.emojis.whereNot((e) => e.name.contains('Woman')); // [Emoji(value: 😀, ...)]
copied to clipboard
↑ Table of contents ↑
emojis.whereNotIndexed() #
'🤦🏾‍♀️text😀text🤦🏻‍♀️'.emojis.whereNotIndexed((i, e) => i == 0 && e.name.contains('Woman')); // [Emoji(value: 😀, ...), Emoji(value: 🤦🏻‍♀️, ...)]
copied to clipboard
↑ Table of contents ↑
Example Flutter Apps



Emoji Overview App Example





Emoji Chat App Example






↑ Table of contents ↑

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.