- Method
Iterable.mapIndex()- creates a new iterable by passing each element and index to a callback. Thanks to @killermonk.
- Added methods
sumOfBigInt()andmax(),min()for Iterable.
- Method
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.
- 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
intersperse()- Adds an element between elements of the iterable.
- Migrated to null safety.
- Removed Removed deprecated method
containsWhere().
- 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
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.
- Getter
random- returns a random element from the list.
- Readme fix.
- Analysis problems fixed.
- Remove
containsWhere()- duplicate ofany().
- Method
containsWhere()- returnstrueif the collection contains an element that satisfy the predicate. - Method
containsAll()- returnstrueif the collection contains all elements from the given collection.
- Readme updated.
- Refactor methods arrangements.
- Refactor tests in groups.
- Getter
firstOrNull- returns the first element ornullif collection is empty.
- 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.
- Fixed repository url.
- Method
tryElementAt()- returns the element at the index if exists ororElseif it is out of range.
- 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.
- Method
firstWhereOrNull()- return the first element that satisfies the given predicate ornullif no element satisfies.
- Method
copyWithAll()- copy current list with adding all elements at the end of new list. - Method
copyWith()support null list.
- Method
isUnorderedEquivalent()- check equality of the elements of this and other iterables without considering order.
quiverdependency decreased to 2.0.0.
- 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.
- Getter
isNullOrEmpty- returnstrueif iterable isnullor empty. - Getter
isNotNullOrEmpty- returnstrueif iterable is notnulland not empty. - Remove redundant Flutter dependencies.
- Add an example.
- Update package description.
- 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.