EmojiUtil class

Utilities to handle emoji operations.

Constructors

EmojiUtil()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

REGEX_EMOJI RegExp
final

Static Methods

ensureColons(String name) String
Wrap colons on both sides of emoji name. So, 'heart' will become ':heart:'.
hasOnlyEmojis(String text, {bool ignoreWhitespace = false}) bool
Returns true if the given text contains only emojis.
stripColons(String name, [void onError(String message)?]) String
Strip colons for emoji name. So, ':heart:' will become 'heart'.
stripNSM(String name) String
When processing emojis, we don't need to store the graphical byte which is 0xfe0f, or so-called 'Non-Spacing Mark'.