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 â
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.