emoji_finder 0.0.1 copy "emoji_finder: ^0.0.1" to clipboard
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. ️).

emoji_finder #

This package will help you check if an emoji is used in your text without hardcoding(e.g. \uFE0F).

Usage #

A simple usage example:

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));
}

1
likes
160
pub points
0%
popularity

Publisher

unverified uploader

This package will help you check if an emoji is used in your text without hardcoding(e.g. ️).

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on emoji_finder