isOnlyEmojis function
- String text
Implementation
bool isOnlyEmojis(String text) {
final emojiRegex = RegExp(
r'^(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff]|\s)+$',
);
return emojiRegex.hasMatch(text.trim());
}