Unique<E, Id> extension

on

Methods

customSort(int compare(E a, E b)) List<E>

Available on List<E>, provided by the Unique extension

Sorting: Flutter provides basic sorting functions, but custom extensions can be created to enable more complex sorting based on specific object properties.
filter(bool test(E)) List<E>

Available on List<E>, provided by the Unique extension

Filtering and Mapping: While Flutter provides various ways to filter and map lists, custom extensions can be created to simplify these operations based on specific criteria.
groupBy<K>(K keyFunction(E item)) Map<K, List<E>>

Available on List<E>, provided by the Unique extension

Flutter doesn't have built-in extensions for grouping items in a list, but you can use this extension to achieve your goals
mapIndexed<R>(R f(int index, E item)) List<R>

Available on List<E>, provided by the Unique extension

paginate(int page, int itemsPerPage) List<E>

Available on List<E>, provided by the Unique extension

Pagination: If you're working with paginated data, you can create custom extensions to handle pagination-related operations.
unique([Id id(E element)?, bool inPlace = true]) List<E>

Available on List<E>, provided by the Unique extension

Will return a unique (Type) data from a list