EmojiPickerUtils class
Helper class that provides extended usage
Constructors
- EmojiPickerUtils()
-
Singleton Constructor
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addEmojiToRecentlyUsed(
{required GlobalKey< EmojiPickerState> key, required Emoji emoji, Config config = const Config()}) → Future<void> - Add an emoji to recently used list or increase its counter
-
applySkinTone(
Emoji emoji, String color) → Emoji - Applies skin tone to given emoji
-
clearRecentEmojis(
{required GlobalKey< EmojiPickerState> key}) → Future<void> - Clears the list of recent emojis
-
getEmojiRegex(
) → RegExp - Returns the emoji regex Based on https://unicode.org/reports/tr51/
-
getRecentEmojis(
) → Future< List< RecentEmoji> > - Returns list of recently used emoji from cache
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
searchEmoji(
String keyword, List< CategoryEmoji> emojiSet, {bool checkPlatformCompatibility = true}) → Future<List< Emoji> > - Search for related emoticons based on keywords
-
setEmojiTextStyle(
String text, {required TextStyle emojiStyle, TextStyle? parentStyle}) → List< InlineSpan> -
Produce a list of spans to adjust style for emoji characters.
Spans enclosing emojis will have
parentStyle
combined withemojiStyle
. Other spans will not have an explicit style (this method does not setparentStyle
to the whole text. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited