chat_core/utils/is_only_emoji library

Properties

emojiRegex RegExp
final
whitespaceRegex RegExp
final

Functions

isOnlyEmoji(String text) bool
Returns true if the given text contains only emojis and whitespace. Returns false if the text contains any non-emoji characters.