Skip to content

Commit

Permalink
adds filterUnsupported method to EmojiPickerUtils (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
maeddin authored Dec 30, 2024
1 parent 1a7a0b0 commit 4245ce4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/emoji_picker_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ class EmojiPickerUtils {
return EmojiPickerInternalUtils().getRecentEmojis();
}

/// Filters out emojis not supported on the platform
Future<List<CategoryEmoji>> filterUnsupported(List<CategoryEmoji> data) =>
EmojiPickerInternalUtils().filterUnsupported(data);

/// Search for related emoticons based on keywords
Future<List<Emoji>> searchEmoji(String search, List<CategoryEmoji> emojiSet,
{bool checkPlatformCompatibility = true}) async {
Expand Down

0 comments on commit 4245ce4

Please sign in to comment.