EmojiParser class
Emoji storage and parser. You will need to instantiate one of this instance to start using.
Constructors
- EmojiParser.new({bool init = true})
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
-
count(
String text) → int - Count number of emoji containing in the text.
-
emojify(
String text, {String fnFormat(String)?}) → String - Emojify the input text.
-
frequency(
String text, String symbol) → int - Count frequency of emoji containing in the text.
-
get(
String? name) → Emoji -
getEmoji(
String? emoji) → Emoji - Get emoji based on emoji code.
-
getName(
String? name) → Emoji -
hasEmoji(
String? emoji) → bool -
hasName(
String name) → bool -
info(
String name) → Emoji - Get info for an emoji.
-
initLocalData(
) → void -
initServerData(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseEmojis(
String text) → List< String> - Return a list of emojis found in the input text
-
replace(
String text, String fromSymbol, String toSymbol) → String? - Replace an emoji by another emoji.
-
toString(
) → String -
A string representation of this object.
inherited
-
unemojify(
String text) → String - This method will unemojify the text containing the Unicode emoji symbols into emoji name.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- EMOJI_SOURCE → String
-
Data source for Emoji.
final
- JSON_EMOJI → String
-
final
- REGEX_EMOJI → RegExp
-
This regex is insane, borrowed from lodash, a Javascript library.
final
- REGEX_NAME → RegExp
-
final