list_ext
Dart extension methods for Iterable and List. You can easily sum, count elements and many more.
1.0.6
2.8K downloads/mo
#4758 most downloaded on pub.dev
Innim/dart_list_extensions
What this package is like to depend on
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
6 years old
28 releases · first in 2020
0 releases in the last 12 months
see the full history below
Release timeline
28 releases · Mar 2020 to Oct 2022
2021
2022
2023
2024
2025
2026
Releases
latest 28-
1.0.604 Oct 2022Release notes
Open source →- Method
Iterable.mapIndex()- creates a new iterable by passing each element and index to a callback. Thanks to @killermonk.
- Method
-
1.0.528 Sep 2022 -
1.0.428 Oct 2021Release notes
Open source →- Method
List.addIfNotNull()- adds element to the end of this list if this element is not null.
- Method
-
1.0.315 Oct 2021Release notes
Open source →- Method
List.copyWithInsertAll()- copy current list with adding all elements at the position of new list.
- Method
-
1.0.204 Mar 2021Release notes
Open source →- Method
toMap()use functions with specified element type (may be breaking in some cases). That's because implementation with dynamic makes usage very inconvenient. - Use innim_lint analysis options.
- Method
-
1.0.1-nullsafety.024 Dec 2020 pre-releaseRelease notes
Open source →- Method
intersperse()- Adds an element between elements of the iterable.
- Method
-
1.0.0-nullsafety.001 Dec 2020 pre-releaseRelease notes
Open source →- Migrated to null safety.
- Removed Removed deprecated method
containsWhere().
-
0.2.025 Dec 2020Nothing published for this version
-
0.1.1524 Dec 2020Nothing published for this version
-
0.1.1403 Nov 2020Release notes
Open source →- Method
List.replace()- Remove element and replace it with another element. - Method
List.replaceWhere()- Replace all elements of list that satisfy given predicate. - Method
List.copyWithReplace()- Copy current list, replacing all element occurrences with another element. - Method
List.copyWithReplaceWhere()- Copy current list, replacing elements of list that satisfy given predicate with another element.
- Method
-
0.1.1325 Aug 2020Release notes
Open source →- Method
sortBy()- sorts the list in ascending order of the object's field value. - Method
sortByDescending()- sorts the list in descending order of the object's field value.
- Method
-
0.1.1229 Jul 2020 -
0.1.1116 Jul 2020 -
0.1.11+116 Jul 2020 -
0.1.1024 Jun 2020Release notes
Open source →- Method
containsWhere()- returnstrueif the collection contains an element that satisfy the predicate. - Method
containsAll()- returnstrueif the collection contains all elements from the given collection.
- Method
-
0.1.901 Jun 2020Release notes
Open source →- Refactor methods arrangements.
- Refactor tests in groups.
- Getter
firstOrNull- returns the first element ornullif collection is empty.
-
0.1.9+101 Jun 2020 -
0.1.823 May 2020Release notes
Open source →- Method
maxOf()- returns the max value of int or double values by elements. - Method
max()for iterables of int and double. - Method
minOf()- returns the min value of int or double values by elements. - Method
min()for iterables of int and double. - Method
reduceValue()- reduces values of elements in a collection to a single value by iteratively combining its using the provided function.
- Method
-
0.1.720 May 2020Release notes
Open source →- Fixed repository url.
- Method
tryElementAt()- returns the element at the index if exists ororElseif it is out of range.
-
0.1.611 May 2020Release notes
Open source →- Add classifier in README.
- Method
avgOf()- returns the average value of int values by elements. - Method
avgOfDouble()- returns the average value of double values by elements. - Methods
avg()for iterables of int and double.
-
0.1.527 Apr 2020Release notes
Open source →- Method
firstWhereOrNull()- return the first element that satisfies the given predicate ornullif no element satisfies.
- Method
-
0.1.407 Apr 2020Release notes
Open source →- Method
copyWithAll()- copy current list with adding all elements at the end of new list. - Method
copyWith()support null list.
- Method
-
0.1.301 Apr 2020Release notes
Open source →- Method
isUnorderedEquivalent()- check equality of the elements of this and other iterables without considering order.
- Method
-
0.1.231 Mar 2020Release notes
Open source →- Method
joinOf()- get string value for each element and concatenates it with separator. - Method
chunks()- splits into chunks (shortcut for quiverpartition()). - Method
toMap()- createMapfrom iterable (shortcut forMap.fromIterable()). - Extensions for
Listand methodcopyWith()- copy current list with adding element at the end of it.
- Method
-
0.1.2+131 Mar 2020 -
0.1.127 Mar 2020Release notes
Open source →- Getter
isNullOrEmpty- returnstrueif iterable isnullor empty. - Getter
isNotNullOrEmpty- returnstrueif iterable is notnulland not empty. - Remove redundant Flutter dependencies.
- Getter
-
0.1.027 Mar 2020 -
0.0.127 Mar 2020Release notes
Open source →- Method
countWhere()- returns count of elements that satisfy the predicatetest. - Method
sumOf()- returns sum of int values by elements. - Method
sumOfDouble()- Returns sum of double values by elements. - Methods
sum()for iterables of int and double.
- Method