emoji_finder 0.0.1 emoji_finder: ^0.0.1 copied to clipboard
This package will help you check if an emoji is used in your text without hardcoding(e.g. ️).
example/emoji_finder_example.dart
import 'package:emoji_finder/emoji_finder.dart';
void main() {
String sample = 'Sample';
String sampleWithEmoji = 'Sample 📌';
String sampleWithEmojiFirst = '📌 Sample';
// *** trim() is applied automatically ***
print(emojiFinder(sample)); //false
print(emojiFinder(sampleWithEmoji)); //true
//false
print(emojiFinder(sampleWithEmoji, isEmojiFirst: true));
//true
print(emojiFinder(sampleWithEmojiFirst, isEmojiFirst: true));
}