emoji_extension library

Classes

BoolList
A space-efficient list of boolean values.
CanonicalizedMap<C, K, V>
A map whose keys are converted to canonical values of type C.
CaseInsensitiveEquality
String equality that's insensitive to differences in ASCII case.
CombinedIterableView<T>
A view of several iterables combined sequentially into a single iterable.
CombinedListView<T>
A view of several lists combined into a single list.
CombinedMapView<K, V>
Returns a new map that represents maps flattened into a single map.
DeepCollectionEquality
Deep equality on collections.
DefaultEquality<E>
Equality of objects that compares only the natural equality of the objects.
DelegatingIterable<E>
An Iterable that delegates all operations to a base iterable.
DelegatingList<E>
A List that delegates all operations to a base list.
DelegatingMap<K, V>
A Map that delegates all operations to a base map.
DelegatingQueue<E>
A Queue that delegates all operations to a base queue.
DelegatingSet<E>
A Set that delegates all operations to a base set.
Emoji
Represents an Emoji. An Emoji is characterized by its value, unicode, name, group, subgroup, and shortcodes. @param value The value of the emoji as a String. @param unicode The unicode representation of the emoji as a String. @param name The name of the emoji as a String. @param appleName The Apple name of the emoji as a nullable String. @param alsoKnownAs The other names emoji is also known as a List of String. @param group The group of the emoji as a Group enum. @param subgroup The subgroup of the emoji as a Subgroup enum. @param version The unicode version in which an emoji was introduced as a Version enum. @param status The status of the emoji as a Status enum. @param shortcodes The shortcodes of the emoji as a List of Shortcode objects.
EmojiParser
A class for parsing and manipulating emojis within a given String value.
Emojis
A class that represents a collection of Emojis. This class provides various methods to retrieve information about the Emojis, including the count, groups and subgroups. It also provides methods to get a single Emoji by value, unicode, name or shortcode, and retrieve a list of Emojis by group or subgroup.
Equality<E>
A generic equality relation on objects.
EqualityBy<E, F>
Equality of objects based on derived values.
EqualityMap<K, V>
A Map whose key equality is determined by an Equality object.
EqualitySet<E>
A Set whose key equality is determined by an Equality object.
HeapPriorityQueue<E>
Heap based priority queue.
IdentityEquality<E>
Equality of objects that compares only the identity of the objects.
IterableEquality<E>
Equality on iterables.
IterableZip<T>
Iterable that iterates over lists of values from other iterables.
ListEquality<E>
Equality on lists.
ListSlice<E>
A list view of a range of another list.
MapEquality<K, V>
Equality on maps.
MapKeySet<E>
An unmodifiable Set view of the keys of a Map.
MapValueSet<K, V>
Creates a modifiable Set view of the values of a Map.
MultiEquality<E>
Combines several equalities into a single equality.
NonGrowableListMixin<E>
Mixin class that implements a throwing version of all list operations that change the List's length.
NonGrowableListView<E>
A fixed-length list.
PriorityQueue<E>
A priority queue is a priority based work-list of elements.
QueueList<E>
A class that efficiently implements both Queue and List.
SetEquality<E>
Equality of sets.
Shortcode
Represents a shortcode that maps to an emoji on a specific platform.
UnionSet<E>
A single set that provides a view of the union over a set of sets.
UnionSetController<E>
A controller that exposes a view of the union of a collection of sets.
UnmodifiableListView<E>
An unmodifiable List view of another List.
UnmodifiableMapMixin<K, V>
Mixin class that implements a throwing version of all map operations that change the Map.
UnmodifiableMapView<K, V>
View of a Map that disallow modifying the map.
UnmodifiableSetMixin<E>
Mixin class that implements a throwing version of all set operations that change the Set.
UnmodifiableSetView<E>
An unmodifiable set.
UnorderedIterableEquality<E>
Equality of the elements of two iterables without considering order.

Enums

Color
Enum representing the color of an emoji.
Group
A collection of groups that categorize emojis in Unicode.
HairStyle
Enum representing the hair style of an emoji.
Platform
Enum representing platforms where emojis can be used.
SkinTone
Enum representing the skin tone of an emoji.
Status
Enum representing the qualification status of an emoji. See https://www.unicode.org/reports/tr51/#def_qualified_emoji_character
Subgroup
A collection of subgroup that categorize emojis in Unicode.
Version
Enum representing the Unicode version in which an emoji was introduced. See https://www.unicode.org/reports/tr51/#EmojiVersions

Extensions

ColorIterableExtensions on Iterable<Color>
Extension methods for Iterable of Color objects.
ComparatorExtension on Comparator<T>
Extensions on comparator functions.
EmojiExtension on String
Extension on String that adds emoji parsing capabilities.
EmojiGetters on Emoji
Extension providing various utility getters for Emoji class.
EmojiIterableExtensions on Iterable<Emoji>
Extension that provides several getters to extract specific data from the iterable of emojis.
EmojiMethods on Emoji
Extension providing various utility methods for Emoji class.
EmojiParserGetters on EmojiParser
Extension providing various utility getters for Emoji parsing.
EmojiParserMethods on EmojiParser
Extension providing various utility methods for Emoji parsing.
GroupExtensions on Group
Provides extension methods for the Group enum.
GroupIterableExtensions on Iterable<Group>
Extension methods for Iterable of Group objects.
HairStyleIterableExtensions on Iterable<HairStyle>
Extension methods for Iterable of HairStyle objects.
IterableComparableExtension on Iterable<T>
Extensions that apply to iterables of Comparable elements.
IterableDoubleExtension on Iterable<double>
Extension on iterables of double.
IterableExtension on Iterable<T>
Extensions that apply to all iterables.
IterableExtensions on Iterable<E>
Provides extensions for Iterable classes.
IterableIntegerExtension on Iterable<int>
Extension on iterables of integers.
IterableIterableExtension on Iterable<Iterable<T>>
Extensions on iterables whose elements are also iterables.
IterableNullableExtension on Iterable<T?>
Extensions that apply to iterables with a nullable element type.
IterableNumberExtension on Iterable<num>
Extensions that apply to iterables of numbers.
ListComparableExtensions on List<E>
Various extensions on lists of comparable elements.
ListExtensions on List<E>
Various extensions on lists of arbitrary elements.
ShortcodeIterableExtensions on Iterable<Shortcode>
An extension on Iterable of Shortcode that provides methods for retrieving shortcodes based on their platform.
SkinToneIterableExtensions on Iterable<SkinTone>
Extension methods for Iterable of SkinTone objects.
StatusIterableExtensions on Iterable<Status>
Extension methods for Iterable of Status objects.
StringStringMapExtensions on Map<String, String>
Provides extension methods for a Map with String keys and String values.
SubgroupIterableExtensions on Iterable<Subgroup>
Extension methods for Iterable of Subgroup objects.
VersionIterableExtensions on Iterable<Version>
Extension methods for Iterable of Version objects.

Functions

binarySearch<E>(List<E> sortedList, E value, {int compare(E, E)?}) int
Returns a position of the value in sortedList, if it is there.
compareAsciiLowerCase(String a, String b) int
Compares a and b lexically, converting ASCII letters to lower case.
compareAsciiLowerCaseNatural(String a, String b) int
Compares strings a and b according to lower-case natural sort ordering.
compareAsciiUpperCase(String a, String b) int
Compares a and b lexically, converting ASCII letters to upper case.
compareAsciiUpperCaseNatural(String a, String b) int
Compares strings a and b according to upper-case natural sort ordering.
compareNatural(String a, String b) int
Compares strings a and b according to natural sort ordering.
equalsIgnoreAsciiCase(String a, String b) bool
Checks if strings a and b differ only on the case of ASCII letters.
groupBy<S, T>(Iterable<S> values, T key(S)) Map<T, List<S>>
Groups the elements in values by the value returned by key.
hashIgnoreAsciiCase(String string) int
Hash code for a string which is compatible with equalsIgnoreAsciiCase.
insertionSort<E>(List<E> elements, {int compare(E, E)?, int start = 0, int? end}) → void
Sort a list between start (inclusive) and end (exclusive) using insertion sort.
lastBy<S, T>(Iterable<S> values, T key(S)) Map<T, S>
Associates the elements in values by the value returned by key.
lowerBound<E>(List<E> sortedList, E value, {int compare(E, E)?}) int
Returns the first position in sortedList that does not compare less than value.
mapMap<K1, V1, K2, V2>(Map<K1, V1> map, {K2 key(K1, V1)?, V2 value(K1, V1)?}) Map<K2, V2>
Creates a new map from map with new keys and values.
maxBy<S, T>(Iterable<S> values, T orderBy(S), {int compare(T, T)?}) → S?
Returns the element of values for which orderBy returns the maximum value.
mergeMaps<K, V>(Map<K, V> map1, Map<K, V> map2, {V value(V, V)?}) Map<K, V>
Returns a new map with all key/value pairs in both map1 and map2.
mergeSort<E>(List<E> elements, {int start = 0, int? end, int compare(E, E)?}) → void
Sorts a list between start (inclusive) and end (exclusive) using the merge sort algorithm.
minBy<S, T>(Iterable<S> values, T orderBy(S), {int compare(T, T)?}) → S?
Returns the element of values for which orderBy returns the minimum value.
reverse<E>(List<E> elements, [int start = 0, int? end]) → void
Reverses a list, or a part of a list, in-place.
shuffle(List elements, [int start = 0, int? end, Random? random]) → void
Shuffles a list randomly.
stronglyConnectedComponents<T>(Map<T, Iterable<T>> graph) List<Set<T>>
Returns the strongly connected components of graph, in topological order.
transitiveClosure<T>(Map<T, Iterable<T>> graph) Map<T, Set<T>>
Returns the transitive closure of graph.