NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #4890 most downloaded on pub.dev
Dart extension methods for Iterable and List. You can easily sum, count elements and many more.
Last release 4 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 11 months
Nearly every release is documented
notes for 24 of 26 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
28 releases · first in 2020
One column per quarter.
Method Iterable.mapIndex() - creates a new iterable by passing each element and index to a callback. Thanks to @killermonk.
Iterable.mapIndex() - creates a new iterable by passing each element and index to a callback. Thanks to @killermonk.Added methods sumOfBigInt() and max(), min() for Iterable .
sumOfBigInt() and max(), min() for Iterable<BigInt>.Method List.addIfNotNull() - adds element to the end of this list if this element is not null.
List.addIfNotNull() - adds element to the end of this list if this element is not null.Method List.copyWithInsertAll() - copy current list with adding all elements at the position of new list.
List.copyWithInsertAll() - copy current list with adding all elements at the position of new list.Method toMap() use functions with specified element type (may be breaking in some cases). That's because implementation with dynamic makes usage very
toMap() use functions with specified element type (may be breaking in some cases).
That's because implementation with dynamic makes usage very inconvenient.Method intersperse() - Adds an element between elements of the iterable.
intersperse() - Adds an element between elements of the iterable.Removed Removed deprecated method containsWhere().
containsWhere().Nothing published for this version
Nothing published for this version
Method List.replace() - Remove element and replace it with another element.
List.replace() - Remove element and replace it with another element.List.replaceWhere() - Replace all elements of list that satisfy given predicate.List.copyWithReplace() - Copy current list, replacing all element occurrences with another element.List.copyWithReplaceWhere() - Copy current list, replacing elements of list
that satisfy given predicate with another element.Method sortBy() - sorts the list in ascending order of the object's field value.
sortBy() - sorts the list in ascending order of the object's field value.sortByDescending() - sorts the list in descending order of the object's field value.Getter random - returns a random element from the list.
random - returns a random element from the list.* Readme fix.
Remove containsWhere() - duplicate of any().
containsWhere() - duplicate of any().Method containsWhere() - returns true if the collection contains an element that satisfy the predicate.
containsWhere() - returns true if the collection contains an element that satisfy the predicate.containsAll() - returns true if the collection contains all elements from the given collection.* Readme updated.
Getter firstOrNull - returns the first element or null if collection is empty.
firstOrNull - returns the first element or null if collection is empty.Method maxOf() - returns the max value of int or double values by elements.
maxOf() - returns the max value of int or double values by elements.max() for iterables of int and double.minOf() - returns the min value of int or double values by elements.min() for iterables of int and double.reduceValue() - reduces values of elements in a collection to a single value
by iteratively combining its using the provided function.Method tryElementAt() - returns the element at the index if exists or orElse if it is out of range.
tryElementAt() - returns the element at the index if exists or orElse if it is out of range.Method avgOf() - returns the average value of int values by elements.
avgOf() - returns the average value of int values by elements.avgOfDouble() - returns the average value of double values by elements.avg() for iterables of int and double.Method firstWhereOrNull() - return the first element that satisfies the given predicate or null if no element satisfies.
firstWhereOrNull() - return the first element that satisfies the given predicate or null if no element satisfies.Method copyWithAll() - copy current list with adding all elements at the end of new list.
copyWithAll() - copy current list with adding all elements at the end of new list.copyWith() support null list.Method isUnorderedEquivalent() - check equality of the elements of this and other iterables without considering order.
isUnorderedEquivalent() - check equality of the elements of this and other iterables without considering order.quiver dependency decreased to 2.0.0.
quiver dependency decreased to 2.0.0.Method joinOf() - get string value for each element and concatenates it with separator.
joinOf() - get string value for each element and concatenates it with separator.chunks() - splits into chunks (shortcut for quiver partition()).toMap() - create Map from iterable (shortcut for Map.fromIterable()).List and method copyWith() - copy current list with adding element at the end of it.Getter isNullOrEmpty - returns true if iterable is null or empty.
isNullOrEmpty - returns true if iterable is null or empty.isNotNullOrEmpty - returns true if iterable is not null and not empty.* Add an example. * Update package description.
Method countWhere() - returns count of elements that satisfy the predicate test.
countWhere() - returns count of elements that satisfy the predicate test.sumOf() - returns sum of int values by elements.sumOfDouble() - Returns sum of double values by elements.sum() for iterables of int and double.Your coding agent can read these notes before it upgrades. Set up the MCP server →